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

Destructive

Description

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

Claude Desktop — MCP Connection
👤
Delete the old 'Summer Sale Banner' reusable block — the campaign is finished.
🤖
Tool call 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" }
  ]
}
next step
Tool called 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

  1. Removing an expired campaign block
    • Prompt: “Delete the old ‘Summer Sale Banner’ reusable block — the campaign is finished.”
  2. Cleaning up unused patterns
    • Prompt: “Delete all reusable blocks that aren’t being used anywhere on the site.”
  3. Post-redesign removal
    • Prompt: “Remove the old ‘Legacy Header CTA’ block after migrating to the new design.”
  4. Trashing for review
    • Prompt: “Trash the ‘Outdated Disclaimer’ block so I can review before permanently deleting.”
  5. 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.

Step 1

Get the Plugin

Install Easy MCP AI on your WordPress site to unlock wp_delete_block and all 74 tools instantly.

Download Free Plugin

Step 2

Connect Your AI Client

Already have the plugin? Step-by-step setup guides for Claude, ChatGPT, Cursor, Windsurf, and 10+ more.

View Setup Guides →

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.