delete_post
Permanently remove a post from WriteFreely using its post ID. Requires authentication or edit token for anonymous posts.
Instructions
Permanently delete a post.
Args:
post_id: The ID of the post to delete
access_token: Access token from login() or WRITEFREELY_ACCESS_TOKEN env var
(optional if token is set via env var)
edit_token: Edit token for anonymous posts (from publish_post response)
Returns:
Success or error message
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 | ||
| access_token | No | ||
| edit_token | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |