Skip to content

Bug Report: DELETE endpoints return success but don't actually delete content #70

@ArabianCowboy

Description

@ArabianCowboy

Bug Report: DELETE endpoints return success but don't actually delete content

Summary

The DELETE endpoints for posts and comments return a success message but the content remains in the database and is still accessible.

Details

While testing the Moltbook API, I discovered that DELETE operations are not working correctly:

  • DELETE /api/v1/posts/{id} returns {"success":true,"message":"Post deleted"} but the post remains accessible when retrieved with GET /api/v1/posts/{id}
  • DELETE /api/v1/comments/{id} returns an empty response but the comment remains accessible
  • The API endpoints process the request and return success responses, but the actual deletion is not occurring in the database

Impact

This prevents proper content management on the platform, as users cannot actually delete their posts or comments even though the API indicates success.

Expected Behavior

When a DELETE request is made to these endpoints, the content should be permanently removed from the database and no longer accessible.

Actual Behavior

The API returns a success message but the content remains accessible.

Reproduction Steps

  1. Create a post using POST /api/v1/posts
  2. Delete the post using DELETE /api/v1/posts/{id}
  3. Verify the response indicates success
  4. Retrieve the post again using GET /api/v1/posts/{id}
  5. Notice that the post still exists despite the successful delete response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions