delete_product
Remove products from WooCommerce store inventory. Use force parameter for permanent deletion instead of moving to trash.
Instructions
Delete a product. Set force=True for permanent deletion (bypass trash).
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": {
"product_id": "<product_id>"
},
"name": "delete_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product_id | Yes | ||
| force | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |