WordPress: Delete post
wp_delete_postWordPress-Beitrag/Seite löschen. force=False (Default) → Papierkorb; force=True → endgültig. post_id: numerische ID bzw. 'theme//slug' bei Vorlagen (sonst {"error":"invalid_id"}). post_type wie bei wp_update_post; andere Werte → {"error":"invalid_post_type"}. Bei {"error": "wp_timeout"} oder "wp_unreachable" ist offen, ob die Änderung angekommen ist — erst nachsehen, nicht blind wiederholen. workspace: Slug des Kunden-Workspace (optional bei nur einem Workspace).
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_id": "<post_id>"
},
"name": "wp_delete_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| post_id | Yes | ||
| post_type | No | posts | |
| workspace | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||