wp_delete_content
Delete WordPress posts, pages, or products by moving them to trash. Set force=true to permanently erase content.
Instructions
Delete a WordPress post, page, or product. By default moves to trash; use 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": {
"type": "<type>",
"id": "<id>"
},
"name": "wp_delete_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Post ID to delete | |
| type | Yes | Post type | |
| force | No | Permanently delete instead of trashing (default: false) |