Deletes a message from a conversation. Users can only delete their own messages, and only if it’s the last message in the conversation.Documentation Index
Fetch the complete documentation index at: https://api.docs.onlydrams.app/llms.txt
Use this file to discover all available pages before exploring further.
URL Parameters
The unique identifier of the community
The unique identifier of the message to delete
Returns
Returns a success message if the message was deleted successfully.Error Responses
Returned when:
- The user is not the sender of the message
- The message is not the last message in the conversation
- The user doesn’t have permission to access the message
ERROR
Notes
- Authorization: User must be the sender of the message
- Deletion Rules:
- Users can only delete their own messages
- Only the last message in a conversation can be deleted
- When the last message is deleted, the entire conversation disappears from both users’ conversation lists
- Conversation Cleanup: If deleting the last message leaves the conversation empty, the conversation is effectively removed
- Historical Messages: Older messages cannot be deleted unless they become the last message

