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
DestructiveDescription
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
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" }
]
} 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
- Removing an old portfolio entry
- Prompt: “Delete portfolio item ID 88 — that project is no longer relevant.”
- Deleting a past event
- Prompt: “Remove the event ID 120 since the conference has passed.”
- Cleaning up test entries
- Prompt: “Delete all test items I created in the ‘products’ post type.”
- Trashing for review
- Prompt: “Trash testimonial ID 34 so I can review before permanently removing it.”
- 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.
Related Tools
Custom Post TypesCreate a new item in any custom post type
Get a single custom post type item by ID with full content
List items of any custom post type with filtering and pagination
Update an existing custom post type item's content or status
Step 1
Get the Plugin
Install Easy MCP AI on your WordPress site to unlock wp_delete_cpt_item 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.