POST
/
posts
/
delete
/
{post_id}
Delete a post
curl --request POST \
  --url https://localhost:5000/posts/delete/{post_id} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "Post deleted successfully"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

post_id
string
required

Post ID

Response

Post deleted successfully

success
boolean
Example:

true

message
string
Example:

"Post deleted successfully"