Skip to main content
DELETE
/
posts
/
{postId}
Delete a post
curl --request DELETE \
  --url http://localhost:4100/api/v1/posts/{postId} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>"
}

Authorizations

Authorization
string
header
required

Your Postbreeze API key

Path Parameters

postId
string
required

Prefixed cuid of the post to delete.

Example:

"post_01HZX5T2K9Q3RB6N6JZP3RYV0M"

Response

The soft-deleted post id.

id
string

The soft-deleted post id.