Delete shop content
shop_deleteDeletes products, product and category images, stock records, basket items and product comments, and clears the wishlist. Cannot be undone.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>",
"site_id": "<site_id>"
},
"name": "shop_delete"
}
}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 (stock_*, var_*, cnt_REC_ID, …). Routing and mode keys (method, mode, del, page, …) are ignored. | |
| confirm | No | Confirmation of this deletion. Not needed unless the server refuses the call because the site owner requires it; that refusal says what to do. | |
| del_all | No | 1 = delete all images (img_del); otherwise img_del needs img. | |
| site_id | Yes | Site to change: site_id from list_sites. Required: the call works only on this site, whatever select_site chose. | |
| files_sequence | No | Image order after single img_del. |