Delete products held in Foldsquare
delete_productsRemove products the merchant keeps in Foldsquare. Store products are never touched, and catalogs keep their own copies of the tiles. Destructive, so it runs only on a call with confirm: true; without it nothing is deleted and the answer lists what would go under requiresConfirmation, for the merchant to approve.
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": {
"productIds": "<productIds>"
},
"name": "delete_products"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | true once the merchant has agreed to the deletion listed under requiresConfirmation | |
| productIds | Yes | Ids as search_products reports them, or skus |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| applied | No | ||
| deleted | No | How many products were removed | |
| notFound | Yes | Ids that are not products held in Foldsquare | |
| products | No | ||
| confirmWith | No | ||
| requiresConfirmation | No | Present when nothing was deleted: the products to show the merchant before calling again with confirm: true |