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
DestructiveDescription
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
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" }
]
} 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
- Removing outdated content
- Prompt: βSearch for any posts about our old pricing plans and delete them.β
- Cleaning up test posts
- Prompt: βList all draft posts with βtestβ in the title and delete them all.β
- Removing a specific post
- Prompt: βFind the post titled βSummer 2022 Saleβ and move it to the trash.β
- Permanent deletion
- Prompt: βForce-delete the post we trashed earlier about the discontinued product.β
- 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.
Related Tools
PostsHave your AI write, categorize, tag, and publish a new blog post β all in one step
Fetch the full content and metadata of a specific post by ID
Ask your AI to browse posts by status, category, tag, author, or keyword with pagination
Search posts by keyword or phrase across all statuses
Update a post's title, content, status, categories, tags, or featured image by ID
List all revisions for a post with dates and authors
Step 1
Get the Plugin
Install Easy MCP AI on your WordPress site to unlock wp_delete_post 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.