wp_delete_cpt_item
Delete a custom post type item in WordPress by specifying its post type and ID. Moves to trash by default; set force to permanently remove. Requires confirmation.
Instructions
Delete a custom post type item (moves to trash by default)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"post_type": "<post_type>",
"id": "<id>",
"confirm": "<confirm>"
},
"name": "wp_delete_cpt_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| force | No | Permanently delete instead of trash | |
| confirm | Yes | Must be true to confirm deletion | |
| post_type | Yes |