delete_coupon
Delete a WooCommerce coupon by ID, moving it to trash by default. Set force to true for permanent deletion.
Instructions
Delete a coupon. Moves to trash by default; set force=true to permanently delete.
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_coupon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Coupon ID | |
| force | No | True to permanently delete | |
| fields | No | Comma-separated fields to return in response |