delete_commerce_product
Delete a product and its stock counters.
Fails with a 409 while any order referencing the product is still open — fulfil, refund, or cancel those orders first.
Args: project_id: The project ID. product_id: The product ID to delete.
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": {
"project_id": "<project_id>",
"product_id": "<product_id>"
},
"name": "delete_commerce_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product_id | Yes | ||
| project_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |