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

Destructive

Description

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

Claude Desktop β€” MCP Connection
πŸ‘€
List all spam comments and permanently delete them.
πŸ€–
Tool call 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..." }
  ]
}
next step
Tool called 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

  1. Deleting spam comments
    • Prompt: β€œList all spam comments and permanently delete them.”
  2. Removing old content
    • Prompt: β€œFind and trash comments older than 2 years that have no replies and low engagement.”
  3. Content moderation
    • Prompt: β€œDelete the comment flagged as offensive on the post we discussed.”
  4. 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.”
  5. 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.

Step 1

Get the Plugin

Install Easy MCP AI on your WordPress site to unlock wp_delete_comment 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.