wp_delete_block
Deletes a Gutenberg block from a post. Ask the user for confirmation first and only call this tool with confirm=true after they approve.
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>",
"post_id": "<post_id>",
"confirm": "<confirm>"
},
"name": "wp_delete_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Raw block-tree path returned by wp_list_blocks. Use this for nested blocks. | |
| index | No | Zero-based block index to delete. | |
| confirm | Yes | Must be true only after the user explicitly confirms deletion. | |
| post_id | Yes | The post ID containing the block. | |
| 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. |