wp_delete_category 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_category
DestructiveDescription
After a site restructure, leftover categories pile up fast — Easy MCP AI lets your AI client audit the full category list and delete the orphans without a single admin-panel click. Posts that belonged to the removed category fall back to 'Uncategorized' automatically, so nothing is silently lost. Every deletion is logged through Easy MCP AI's audit trail, giving you a record of exactly which AI client made the change and when.
See it in action
wp_list_categories Listing categories to find the one to remove…
{
"total": 6,
"categories": [
{ "id": 9, "name": "Marketing", "count": 7 },
{ "id": 11, "name": "Archive", "count": 0 },
{ "id": 14, "name": "Uncategorized", "count": 3 }
]
} wp_delete_category {
"category_id": 9,
"name": "Marketing",
"deleted": true,
"posts_reassigned_to": "uncategorized"
} Found 'Archive' (category #11) — it had 0 posts. Category deleted successfully.
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.”
Frequently Asked Questions
What does wp_delete_category do?
After a site restructure, leftover categories pile up fast — Easy MCP AI lets your AI client audit the full category list and delete the orphans without a single admin-panel click. Posts that belonged to the removed category fall back to 'Uncategorized' automatically, so nothing is silently lost. Every deletion is logged through Easy MCP AI's audit trail, giving you a record of exactly which AI client made the change and when.
How do I use wp_delete_category 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: "List all categories with zero posts and delete them."
Do I need Easy MCP AI to use wp_delete_category?
Yes. wp_delete_category 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
CategoriesCreate a new post category with name, slug, description, and optional parent
Fetch full details of a specific post category by ID
List all post categories with slugs, descriptions, and post counts
Update a category's name, slug, description, or parent by ID
Step 1
Get the Plugin
Install Easy MCP AI on your WordPress site to unlock wp_delete_category 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.