wp_delete_revision 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_revision
DestructiveDescription
Revision deletion through Easy MCP AI is always permanent — there is no trash step, and the content cannot be recovered after deletion. This makes it the right tool for deliberate database hygiene: removing outdated drafts that contain sensitive old pricing, pruning hundreds of auto-saved revisions from high-traffic posts, or cleaning up after a content migration. Confirm the revision content first with the get tool, then let Easy MCP AI handle the deletion.
See it in action
wp_list_revisions Fetching revisions for this post…
{
"post_id": 42,
"total": 4,
"revisions": [
{ "revision_id": 55, "date": "2024-03-15 14:22", "author": "admin" },
{ "revision_id": 52, "date": "2024-03-14 09:10", "author": "admin" },
{ "revision_id": 48, "date": "2024-03-13 17:05", "author": "jane.doe" },
{ "revision_id": 44, "date": "2024-03-01 12:00", "author": "admin" }
]
} wp_delete_revision {
"revision_id": 52,
"post_id": 42,
"deleted": true
} Found 4 revisions — keeping the 3 most recent. Deleted revision #44 (oldest, from March 1).
Example Use Cases & Sample Prompts
- Removing an old revision
- Prompt: “Delete revision ID 56 — I don’t need that old version anymore.”
- Database cleanup
- Prompt: “Delete all but the last 3 revisions of post ID 45 to reduce database size.”
- Removing sensitive drafts
- Prompt: “Permanently delete the revision that contained the old pricing information.”
- Post-publish cleanup
- Prompt: “After publishing post ID 78, delete all its working draft revisions.”
- Storage optimization
- Prompt: “Find posts with more than 10 revisions and delete the oldest ones.”
Frequently Asked Questions
What does wp_delete_revision do?
Revision deletion through Easy MCP AI is always permanent — there is no trash step, and the content cannot be recovered after deletion. This makes it the right tool for deliberate database hygiene: removing outdated drafts that contain sensitive old pricing, pruning hundreds of auto-saved revisions from high-traffic posts, or cleaning up after a content migration. Confirm the revision content first with the get tool, then let Easy MCP AI handle the deletion.
How do I use wp_delete_revision 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 revision ID 56 — I don't need that old version anymore."
Do I need Easy MCP AI to use wp_delete_revision?
Yes. wp_delete_revision 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
RevisionsStep 1
Get the Plugin
Install Easy MCP AI on your WordPress site to unlock wp_delete_revision 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.