← Back to Tools Reference
Download Plugin
wp_delete_comment
Description
Use this tool to permanently delete a comment from your WordPress site. Your AI will typically list comments first to find the correct comment ID, then proceed with deletion. This is irreversible — for recoverable removal, use the update tool to trash the comment instead.
See it in action
Claude Desktop — MCP Connection
👤
List all spam comments and permanently delete them.
🤖
Calling Tool: wp_delete_comment
Done! I've used wp_delete_comment to complete that for you.
{"status": "success"} 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.”
Access this tool today
Install the Easy MCP AI plugin to securely expose wp_delete_comment to Claude, ChatGPT, and more.