wp_delete_post 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_post

Destructive

Description

Stale content, duplicate articles, or leftover test drafts can pile up fast β€” this tool lets your AI clear them out through conversation alone. Easy MCP AI exposes both soft-delete (trash) and permanent deletion, and your AI will typically search or list posts first to confirm the right target before acting. Bearer token auth and per-token tool permissions in Easy MCP AI mean you can scope deletion access precisely, keeping destructive operations in trusted hands only.

See it in action

Claude Desktop β€” MCP Connection
πŸ‘€
Search for any posts about our old pricing plans and delete them.
πŸ€–
Tool call wp_search_posts

Searching for posts about old pricing plans…

{
  "total": 2,
  "results": [
    { "post_id": 38, "title": "Old Pricing Plans 2022", "status": "publish", "date": "2022-06-10" },
    { "post_id": 29, "title": "Pricing Overview (Outdated)", "status": "draft", "date": "2022-01-04" }
  ]
}
next step
Tool called wp_delete_post
{
  "deleted": 2,
  "posts": [
    { "post_id": 38, "title": "Old Pricing Plans 2022", "status": "trash" },
    { "post_id": 29, "title": "Pricing Overview (Outdated)", "status": "trash" }
  ]
}

Done. I found 2 posts about old pricing plans and moved them both to trash β€” post #38 and post #29. They're no longer publicly visible.

Example Use Cases & Sample Prompts

  1. Removing outdated content
    • Prompt: β€œSearch for any posts about our old pricing plans and delete them.”
  2. Cleaning up test posts
    • Prompt: β€œList all draft posts with β€˜test’ in the title and delete them all.”
  3. Removing a specific post
    • Prompt: β€œFind the post titled β€˜Summer 2022 Sale’ and move it to the trash.”
  4. Permanent deletion
    • Prompt: β€œForce-delete the post we trashed earlier about the discontinued product.”
  5. Batch cleanup
    • Prompt: β€œList all posts with 0 words in the content and delete them β€” they were likely drafts created by mistake.”

Frequently Asked Questions

What does wp_delete_post do?

Stale content, duplicate articles, or leftover test drafts can pile up fast β€” this tool lets your AI clear them out through conversation alone. Easy MCP AI exposes both soft-delete (trash) and permanent deletion, and your AI will typically search or list posts first to confirm the right target before acting. Bearer token auth and per-token tool permissions in Easy MCP AI mean you can scope deletion access precisely, keeping destructive operations in trusted hands only.

How do I use wp_delete_post 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: "Search for any posts about our old pricing plans and delete them."

Do I need Easy MCP AI to use wp_delete_post?

Yes. wp_delete_post 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_post 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.