Delete (trash) a post or page
wp_content_deleteDelete WordPress posts or pages by ID, moving them to trash by default; use force=true with confirm='delete' to permanently remove them.
Instructions
Moves to trash by default. force=true bypasses trash forever and requires confirm:"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": "wp_content_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| type | No | post | |
| force | No | ||
| confirm | No | Must be "delete" when force=true |