WooCommerce: Delete product attribute
woocommerce_delete_product_attributePermanently deletes a global WooCommerce product attribute and its terms; per-product custom attributes remain unchanged. Use when an attribute must be removed because attributes cannot be trashed.
Instructions
[UNIFIED] Permanently delete a global WooCommerce product attribute (and its terms). Products keep any custom per-product attributes. Attributes cannot be trashed.
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": {
"site": "<site>",
"attribute_id": "<attribute_id>"
},
"name": "woocommerce_delete_product_attribute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | ||
| attribute_id | Yes |