wp_delete_cpt_item 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_cpt_item

Destructive

Description

Stale portfolio entries, past events, and test records clutter your CPT archives — and Easy MCP AI lets your AI client clean them up without touching wp-admin. Trashing moves the item to the WordPress trash for potential recovery; force-deleting removes it immediately and permanently. Works with any CPT that has REST API support enabled, and follows the same safe AI client → Easy MCP AI → WordPress flow as all destructive tools.

See it in action

Claude Desktop — MCP Connection
👤
Delete the old portfolio item ID 88 — that project is no longer relevant.
🤖
Tool call wp_list_cpt_items

Listing custom post type items to find the one to delete…

{
  "post_type": "product",
  "total": 5,
  "items": [
    { "id": 201, "title": "Premium Plan", "status": "publish" },
    { "id": 202, "title": "Starter Plan", "status": "publish" },
    { "id": 203, "title": "Legacy Plan (discontinued)", "status": "draft" }
  ]
}
next step
Tool called wp_delete_cpt_item
{
  "id": 203,
  "post_type": "product",
  "title": "Legacy Plan (discontinued)",
  "deleted": true
}

Found 'Legacy Plan (discontinued)' (product #203, draft). It's been permanently deleted.

Example Use Cases & Sample Prompts

  1. Removing an old portfolio entry
    • Prompt: “Delete portfolio item ID 88 — that project is no longer relevant.”
  2. Deleting a past event
    • Prompt: “Remove the event ID 120 since the conference has passed.”
  3. Cleaning up test entries
    • Prompt: “Delete all test items I created in the ‘products’ post type.”
  4. Trashing for review
    • Prompt: “Trash testimonial ID 34 so I can review before permanently removing it.”
  5. Bulk cleanup
    • Prompt: “Permanently delete all archived items from the ‘resources’ post type.”

Frequently Asked Questions

What does wp_delete_cpt_item do?

Stale portfolio entries, past events, and test records clutter your CPT archives — and Easy MCP AI lets your AI client clean them up without touching wp-admin. Trashing moves the item to the WordPress trash for potential recovery; force-deleting removes it immediately and permanently. Works with any CPT that has REST API support enabled, and follows the same safe AI client → Easy MCP AI → WordPress flow as all destructive tools.

How do I use wp_delete_cpt_item 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: "Delete the old portfolio item ID 88 — that project is no longer relevant."

Do I need Easy MCP AI to use wp_delete_cpt_item?

Yes. wp_delete_cpt_item 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_cpt_item 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.