This endpoint deletes a blog post. Users can only delete posts they have created. The system verifies ownership by matching the post’s user_id with the authenticated user’s ID from the JWT token.
This endpoint requires authentication and permanently deletes the post. This action cannot be undone.
{ "code": 404, "status": "error", "message": "El post no existe"}
The error message “El post no existe” (The post does not exist) is returned both when the post doesn’t exist and when you attempt to delete a post that doesn’t belong to you.
This is a permanent delete operation. The post data is removed from the database and cannot be recovered. The associated image file is NOT automatically deleted from storage.