wp_delete_post
Delete a WordPress post by site and post ID, moving it to trash or permanently removing it when force is set to true.
Instructions
Delete a post (moves to trash, or permanently if force=true)
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": {
"site": "<site>",
"id": "<id>"
},
"name": "wp_delete_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Post ID | |
| site | Yes | Site id (see list_sites) | |
| force | No | Bypass trash and delete permanently |