This is a soft delete operation. The post is not permanently removed from the database. Instead, the
isDeleted flag is set to true and the DeletedAt timestamp is recorded. The post can be restored using the restore endpoint.Endpoint
Authentication
This endpoint requires authentication. Only the post owner can delete their post.Path Parameters
The unique identifier (PostID) of the post to delete
Request Body
The username of the account requesting deletion. Must be the post owner.
Request Example
Response
204 No Content when the post is successfully marked as deleted. The following changes are made to the post:
isDeletedis set totrueDeletedAtis set to the current timestamp