wp_delete_page 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_page

Destructive

Description

Retired campaign pages, outdated offer pages, or leftover test content β€” ask your AI to find and remove them without navigating the WordPress admin. Easy MCP AI supports both trash and permanent deletion, and the AI naturally confirms the target by listing or searching pages first before committing to a destructive action. Per-token tool permissions in Easy MCP AI let you grant deletion access only to the tokens that need it, keeping your site's page structure safe from accidental removal.

See it in action

Claude Desktop β€” MCP Connection
πŸ‘€
Find the 'Black Friday 2023' page and delete it.
πŸ€–
Tool call wp_list_pages

Listing pages to locate the one to delete…

{
  "total": 8,
  "pages": [
    { "page_id": 6, "title": "Old Landing Page", "status": "publish" },
    { "page_id": 15, "title": "About Us", "status": "publish" },
    { "page_id": 18, "title": "Contact", "status": "publish" }
  ]
}
next step
Tool called wp_delete_page
{
  "page_id": 6,
  "title": "Old Landing Page",
  "previous_status": "publish",
  "status": "trash"
}

Found 'Old Landing Page' (page #6) in the list. It's been moved to trash.

Example Use Cases & Sample Prompts

  1. Removing a retired offer
    • Prompt: β€œFind the β€˜Black Friday 2023’ page and delete it.”
  2. Cleaning up old campaign pages
    • Prompt: β€œList all pages with β€˜promo’ in the title and delete the ones that are still in draft.”
  3. Removing test pages
    • Prompt: β€œSearch for any pages with β€˜test’ in their title and trash them.”
  4. Permanent deletion
    • Prompt: β€œThe β€˜Old Home’ page is in the trash β€” permanently delete it to clean up the database.”
  5. Site restructure
    • Prompt: β€œWe are consolidating our service pages β€” find and delete the standalone β€˜SEO Basic’ page since we merged it into our main Services page.”

Frequently Asked Questions

What does wp_delete_page do?

Retired campaign pages, outdated offer pages, or leftover test content β€” ask your AI to find and remove them without navigating the WordPress admin. Easy MCP AI supports both trash and permanent deletion, and the AI naturally confirms the target by listing or searching pages first before committing to a destructive action. Per-token tool permissions in Easy MCP AI let you grant deletion access only to the tokens that need it, keeping your site's page structure safe from accidental removal.

How do I use wp_delete_page 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: "Find the 'Black Friday 2023' page and delete it."

Do I need Easy MCP AI to use wp_delete_page?

Yes. wp_delete_page 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_page 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.