delete_post
Delete a WordPress post by ID. Choose to move it to trash or permanently delete.
Instructions
Delete a post in WordPress site.
If force=false, post is moved to trash. If force=true, post is permanently deleted.
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": {
"post_id": "<post_id>"
},
"name": "delete_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Whether to permanently delete (true) or move to trash (false) - default: false | |
| post_id | Yes | ID of the post to delete |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||