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.
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) |