Skip to main content

Delete Banned Post

DELETE /admin/post/:postId​

Description​

Permanently deletes a banned post when the retention and admin-ownership rules are satisfied.

Request Parameters​

Requires Authentication: true​

Requires Admin Role: true​

PATH PARAMS​

NameTypeRequiredDescription
postIdstringYesMongoDB post ID.

BODY​

NameTypeRequiredDescription
messagestringNoAdditional deletion message sent by email.

Success Response​

{
"message": "Post deleted successfully"
}

Error Response​

CodeDescription
401Missing or invalid access token
402User is not an admin
403Post is not banned or cannot be deleted yet
404Post or ban history not found
413Message too long
500Server error