Delete shop content
shop_deleteDeletes products, product and category images, stock records, basket items and product comments, and clears the wishlist. Cannot be undone.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Goods, category, comment, or basket line id. | |
| ids | No | Ids separated by commas (invoice_*: order ids, also separated by |; stock_remove). | |
| img | No | Image slot number, 0 for the main image. | |
| action | Yes | Operation to run. Each oneOf entry describes one action and lists its parameters. | |
| fields | No | Extra form keys (checkout field_N, stock_*, var_*, cnt_REC_ID, …). Routing and mode keys (method, mode, del, page, …) are ignored. | |
| confirm | No | Pass true only after the user approves this change. Required by: delete, img_del, category_image_delete, variation_dict_delete, stock_remove, stock_remove_all, comments_delete, wishlist_clear. Required in some cases by: basket_delete (see the action). | |
| del_all | No | 1 = delete all images (img_del); otherwise img_del needs img. | |
| files_sequence | No | Image order after single img_del. |