Delete an unpublished post
delete_postPermanently deletes a draft or scheduled post. Published posts, partially published posts and posts currently publishing cannot be deleted.
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": "delete_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| post_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Stable machine-readable error code. Present only for an error result. | |
| errors | No | Validation messages keyed by input field. | |
| issues | No | Structured validation issues. | |
| deleted | No | ||
| message | No | Safe error summary. Present only for an error result. | |
| post_id | No | ||
| retry_after | No | Seconds to wait before retrying a rate-limited request. |