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

Destructive

Description

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

Claude Desktop — MCP Connection
👤
List all categories with zero posts and delete them.
🤖
Tool call 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 }
  ]
}
next step
Tool called 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

  1. Removing an unused category
    • Prompt: “List all categories with zero posts and delete them.”
  2. Taxonomy consolidation
    • Prompt: “I merged ‘Tips’ and ‘Guides’ into one category called ‘Guides’ — now delete the empty ‘Tips’ category.”
  3. Removing a duplicate
    • Prompt: “I have both ‘News’ and ‘Latest News’ categories. Delete ‘Latest News’ since it’s a duplicate.”
  4. Cleanup after migration
    • Prompt: “After importing content, several categories were created by mistake. List them and delete the incorrect ones.”
  5. 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.

Step 1

Get the Plugin

Install Easy MCP AI on your WordPress site to unlock wp_delete_category 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.