← Back to Tools Reference

wp_delete_post

Description

Use this tool to remove a post from your site. Your AI can move it to the trash or permanently delete it. It will normally list or search posts first to confirm the right one before deleting — protecting you from accidental data loss.

See it in action

Claude Desktop — MCP Connection
👤
Search for any posts about our old pricing plans and delete them.
🤖
Calling Tool: wp_delete_post
Done! I've used wp_delete_post to complete that for you.
{"status": "success"}

Example Use Cases & Sample Prompts

  1. Removing outdated content
    • Prompt: “Search for any posts about our old pricing plans and delete them.”
  2. Cleaning up test posts
    • Prompt: “List all draft posts with ‘test’ in the title and delete them all.”
  3. Removing a specific post
    • Prompt: “Find the post titled ‘Summer 2022 Sale’ and move it to the trash.”
  4. Permanent deletion
    • Prompt: “Force-delete the post we trashed earlier about the discontinued product.”
  5. Batch cleanup
    • Prompt: “List all posts with 0 words in the content and delete them — they were likely drafts created by mistake.”

Access this tool today

Install the Easy MCP AI plugin to securely expose wp_delete_post to Claude, ChatGPT, and more.

Download Plugin