Headers
Bearer token (JWT) from OAuth2 login
Path Parameters
The ID of the message to delete
Response
Returns204 No Content on successful deletion.
Irreversible: Deleting a message permanently removes it from the conversation. This action cannot be undone.
Sequence Integrity: When you delete a message, the sequence numbers of remaining messages are not changed. This preserves the chronological integrity of the conversation.
You can only delete messages from chats that belong to your account. Attempting to delete another user’s message will result in a 404 error.
Use Cases: Message deletion is useful for:
- Removing sensitive information
 - Correcting errors in conversation history
 - Cleaning up test messages
 - Implementing “edit” functionality (delete + create new)
 

