wp_cpt_delete
Delete custom post type items by ID. Moves to trash by default; use force flag and confirmation for permanent deletion.
Instructions
Delete an item of any CPT. Default to trash. force=true with confirm="DELETE_PERMANENTLY_" for hard delete (requires MODE=full).
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>"
},
"name": "wp_cpt_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| force | No | ||
| confirm | No | ||
| post_type | Yes |