Delete WooCommerce Product
woocommerce_delete_productDelete a WooCommerce product by ID, moving it to trash or permanently deleting with force=true.
Instructions
Delete a product. By default this moves the product to the trash (recoverable); set force=true to permanently delete it.
Args:
product_id (number, required)
force (boolean): permanently delete if true (default: false, moves to trash)
Returns: Confirmation with the deleted product's id, name, and status.
Error Handling:
Returns "Error: Resource not found (404)" if product_id doesn't exist.
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": "woocommerce_delete_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | If true, permanently delete instead of moving to trash (default: false) | |
| product_id | Yes | The numeric WooCommerce product ID to delete |