Skip to main content
DELETE
https://postsyncer.com/api/v1
posts
/
{id}
curl -X DELETE "https://postsyncer.com/api/v1/posts/123" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "message": "Post deleted successfully"
}

Delete Post

Deletes a post and cancels any scheduled publishing. This action cannot be undone.

Request

id
integer
required
The ID of the post to delete
curl -X DELETE "https://postsyncer.com/api/v1/posts/123" \
  -H "Authorization: Bearer YOUR_API_TOKEN"

Response

message
string
Success message confirming the post was deleted
{
  "message": "Post deleted successfully"
}

Code Examples

curl -X DELETE "https://postsyncer.com/api/v1/posts/123" \
  -H "Authorization: Bearer YOUR_API_TOKEN"

Error Codes

401
Unauthorized
Missing or invalid API token
403
Forbidden
Token does not have ‘posts’ permission
404
Not Found
Post not found or user does not have access to the post’s workspace
422
Unprocessable Entity
Invalid post ID provided