delete_category
Remove a product category from WooCommerce. Products in the category are kept and become uncategorized.
Instructions
Delete a product category. Does NOT delete products in the category; they become uncategorized.
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": "delete_category"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Category ID | |
| force | No | True to permanently delete | |
| fields | No | Comma-separated fields to return in response |