Skip to main content

DELETE /api/posts/[id]

Soft-deletes a post. Only the post owner can delete it.
The client should show a confirmation modal before calling this endpoint.
Requires authentication. Owner only.

Response (200)

{
  "message": "Post deleted successfully"
}