wp_delete_product
Delete a WooCommerce product by ID, moving it to trash or permanently deleting with force. Requires confirmation to prevent accidental removal.
Instructions
Delete a WooCommerce product (moves to trash by default)
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>",
"confirm": "<confirm>"
},
"name": "wp_delete_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| force | No | ||
| confirm | Yes | Must be true to confirm deletion |