wp_delete_post
Deletes a post or page after explicit user confirmation. Check the post type first. Standard posts move to trash by default. Deleting a theme template or part is permanent and requires force=true plus approval for permanent deletion. Use wp_delete_navigation_menu for block navigation. To clear Additional CSS, use wp_update_custom_css.
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_id": "<site_id>",
"id": "<id>",
"confirm": "<confirm>"
},
"name": "wp_delete_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The post ID to delete. | |
| force | No | If true, permanently delete instead of moving to trash. Required for theme templates and parts. | |
| confirm | Yes | Must be true only after the user explicitly confirms deletion. | |
| site_id | Yes | The connected site's id returned by list_sites. Call list_sites first; do not use a URL or WordPress post ID. |