wp_delete_block is one of 162 MCP tools included in Easy MCP AI — the WordPress plugin that connects Claude, ChatGPT, and any AI assistant to your site.
Install Free Plugin →wp_delete_block
DestructiveDescription
Deleting a synced pattern has sitewide consequences — it disappears from every page or post where it was embedded — so this is a tool to use deliberately. Easy MCP AI supports both trashing (recoverable) and force-deletion (permanent) so you can choose the right safety level for the situation. Once you've confirmed the pattern is no longer needed, your AI client can trigger the deletion through Easy MCP AI in a single conversation step.
See it in action
wp_list_blocks Listing reusable blocks to find the one to remove…
{
"total": 3,
"blocks": [
{ "block_id": 101, "title": "Newsletter CTA", "status": "publish" },
{ "block_id": 102, "title": "Team Bio Card", "status": "publish" },
{ "block_id": 103, "title": "Promo Banner (old)", "status": "draft" }
]
} wp_delete_block {
"block_id": 103,
"title": "Promo Banner (old)",
"deleted": true
} Found 'Promo Banner (old)' (block #103, currently draft). It's been permanently deleted.
Example Use Cases & Sample Prompts
- Removing an expired campaign block
- Prompt: “Delete the old ‘Summer Sale Banner’ reusable block — the campaign is finished.”
- Cleaning up unused patterns
- Prompt: “Delete all reusable blocks that aren’t being used anywhere on the site.”
- Post-redesign removal
- Prompt: “Remove the old ‘Legacy Header CTA’ block after migrating to the new design.”
- Trashing for review
- Prompt: “Trash the ‘Outdated Disclaimer’ block so I can review before permanently deleting.”
- Removing a test block
- Prompt: “Permanently delete the test pattern I created earlier.”
Frequently Asked Questions
What does wp_delete_block do?
Deleting a synced pattern has sitewide consequences — it disappears from every page or post where it was embedded — so this is a tool to use deliberately. Easy MCP AI supports both trashing (recoverable) and force-deletion (permanent) so you can choose the right safety level for the situation. Once you've confirmed the pattern is no longer needed, your AI client can trigger the deletion through Easy MCP AI in a single conversation step.
How do I use wp_delete_block with my AI assistant?
Install the Easy MCP AI WordPress plugin, generate an API token in your dashboard, and connect your AI client (Claude, ChatGPT, Cursor, or any MCP-compatible assistant). Then simply describe what you want in natural language — for example: "Delete the old 'Summer Sale Banner' reusable block — the campaign is finished."
Do I need Easy MCP AI to use wp_delete_block?
Yes. wp_delete_block is one of 162 MCP tools bundled inside the Easy MCP AI WordPress plugin. Install the free plugin from WordPress.org, connect your AI client, and this tool becomes available immediately — no coding required.
Related Tools
BlocksCreate a new reusable block (synced pattern) with a title and block content
Get a single reusable block by ID with full block markup
List all reusable blocks (synced patterns) with filtering and pagination
Update an existing reusable block's title or content — syncs everywhere it's embedded
Step 1
Get the Plugin
Install Easy MCP AI on your WordPress site to unlock wp_delete_block and all 74 tools instantly.
Step 2
Connect Your AI Client
Already have the plugin? Step-by-step setup guides for Claude, ChatGPT, Cursor, Windsurf, and 10+ more.