← Back to Tools Reference
Download Plugin
wp_delete_category
Description
Use this tool to delete an unwanted category from your WordPress site. When a category is deleted, posts assigned to it typically revert to the default 'Uncategorized' category. Your AI will list categories first to confirm the right ID before deleting.
See it in action
Claude Desktop — MCP Connection
👤
List all categories with zero posts and delete them.
🤖
Calling Tool: wp_delete_category
Done! I've used wp_delete_category to complete that for you.
{"status": "success"} Example Use Cases & Sample Prompts
- Removing an unused category
- Prompt: “List all categories with zero posts and delete them.”
- Taxonomy consolidation
- Prompt: “I merged ‘Tips’ and ‘Guides’ into one category called ‘Guides’ — now delete the empty ‘Tips’ category.”
- Removing a duplicate
- Prompt: “I have both ‘News’ and ‘Latest News’ categories. Delete ‘Latest News’ since it’s a duplicate.”
- Cleanup after migration
- Prompt: “After importing content, several categories were created by mistake. List them and delete the incorrect ones.”
- Site restructure
- Prompt: “Delete the ‘Old Products’ category — we no longer sell those and the posts have been moved.”
Access this tool today
Install the Easy MCP AI plugin to securely expose wp_delete_category to Claude, ChatGPT, and more.