Skip to main content
DELETE
/
api
/
chats
/
{id}
curl --request DELETE \
  --url https://api.yourdomain.com/api/chats/chat_123abc \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "Chat deleted successfully"
}

Path Parameters

id
string
required
Chat ID to delete

Response

success
boolean
Indicates if the chat was deleted successfully
message
string
Success or error message
curl --request DELETE \
  --url https://api.yourdomain.com/api/chats/chat_123abc \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "Chat deleted successfully"
}

Notes

This action is irreversible. Deleting a chat will also delete:
  • All messages in the chat
  • All votes associated with messages
  • All streams created for the chat
  • Any other associated data