wc_delete_product
Remove a WooCommerce product by its ID, optionally force deleting it permanently. Use this to manage store inventory through the WordPress REST API.
Instructions
Delete a WooCommerce product
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": {
"id": "<id>"
},
"name": "wc_delete_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Product ID | |
| force | No | Force delete |