wp_delete_comment 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_comment
DestructiveDescription
Spam that slipped through, abusive replies, or an entire comment section that needs clearing after a post update β Easy MCP AI lets your AI permanently remove comments without touching the WordPress admin panel. The AI client will list and filter comments first to confirm the correct IDs, then issue the deletion through Easy MCP AI in one call. For recoverable removal, use wp_update_comment to trash instead; Easy MCP AI's per-token tool permissions also let you restrict permanent deletion to specifically authorized AI sessions.
See it in action
wp_list_comments Fetching spam comments to reviewβ¦
{
"total": 4,
"comments": [
{ "comment_id": 91, "author": "spambot99", "status": "spam", "content": "Buy cheap watches..." },
{ "comment_id": 88, "author": "adbot", "status": "spam", "content": "Click here for free..." }
]
} wp_delete_comment {
"deleted": 2,
"comments": [
{ "comment_id": 91, "author": "spambot99" },
{ "comment_id": 88, "author": "adbot" }
]
} Found 2 spam comments (IDs #91, #88). Both have been permanently deleted.
Example Use Cases & Sample Prompts
- Deleting spam comments
- Prompt: βList all spam comments and permanently delete them.β
- Removing old content
- Prompt: βFind and trash comments older than 2 years that have no replies and low engagement.β
- Content moderation
- Prompt: βDelete the comment flagged as offensive on the post we discussed.β
- Cleaning a postβs comment section
- Prompt: βA specific post has a lot of irrelevant off-topic comments β list them and delete the ones that donβt add value.β
- Permanent cleanup
- Prompt: βAll comments in trash have been reviewed β go ahead and permanently delete them all.β
Frequently Asked Questions
What does wp_delete_comment do?
Spam that slipped through, abusive replies, or an entire comment section that needs clearing after a post update β Easy MCP AI lets your AI permanently remove comments without touching the WordPress admin panel. The AI client will list and filter comments first to confirm the correct IDs, then issue the deletion through Easy MCP AI in one call. For recoverable removal, use wp_update_comment to trash instead; Easy MCP AI's per-token tool permissions also let you restrict permanent deletion to specifically authorized AI sessions.
How do I use wp_delete_comment 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: "List all spam comments and permanently delete them."
Do I need Easy MCP AI to use wp_delete_comment?
Yes. wp_delete_comment 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
CommentsPost a new comment on a WordPress post or page
Fetch the full content and metadata of a specific comment by ID
List comments filtered by post, status (pending, approved, spam), or author
Update a comment's content, status (approve/spam/trash), or author details by ID
Step 1
Get the Plugin
Install Easy MCP AI on your WordPress site to unlock wp_delete_comment 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.