Delete Product Category
woocommerce_delete_product_categoryPermanently delete a product category by its ID. Products are unassigned but not deleted. Force must be true.
Instructions
Permanently delete a product category. Products assigned to it are not deleted, just unassigned.
Args:
id (number, required)
force (boolean, default true): required to be true, terms do not support trash
Returns: Confirmation of deletion.
Error Handling:
Returns "Error: Resource not found (404)" if the 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": {
"id": "<id>"
},
"name": "woocommerce_delete_product_category"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The category's numeric ID | |
| force | No | Terms don't support trash; deletion is permanent (default: true) |