delete_order
Remove an order from WooCommerce. Use force=true to permanently delete instead of moving to trash.
Instructions
Delete an order. 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_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Order ID | |
| force | No | True to permanently delete | |
| fields | No | Comma-separated fields to return in response |