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
DestructiveDescription
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
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" }
]
} 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
- Removing a retired offer
- Prompt: βFind the βBlack Friday 2023β page and delete it.β
- Cleaning up old campaign pages
- Prompt: βList all pages with βpromoβ in the title and delete the ones that are still in draft.β
- Removing test pages
- Prompt: βSearch for any pages with βtestβ in their title and trash them.β
- Permanent deletion
- Prompt: βThe βOld Homeβ page is in the trash β permanently delete it to clean up the database.β
- 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.
Related Tools
PagesHave your AI create a new WordPress page with title, content, and status
Fetch the full content and metadata of a specific page by ID
List all WordPress pages with status and hierarchy details
Update a page's title, content, status, or parent by ID
Step 1
Get the Plugin
Install Easy MCP AI on your WordPress site to unlock wp_delete_page 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.