curl -X DELETE "https://your-domain.com/api/chats/550e8400-e29b-41d4-a716-446655440000" \
-H "Authorization: Bearer YOUR_API_KEY"
true
Chat & Messages
Delete Chat
Delete a specific chat
DELETE
/
api
/
chats
/
{id}
curl -X DELETE "https://your-domain.com/api/chats/550e8400-e29b-41d4-a716-446655440000" \
-H "Authorization: Bearer YOUR_API_KEY"
true
Permanently deletes a chat and all associated messages. This action cannot be undone.
Users require the
chat.delete permission to delete their own chats. Admin users can delete any chat.Path Parameters
The unique identifier of the chat to delete
Response
Returns
true if the chat was successfully deleted, false otherwisecurl -X DELETE "https://your-domain.com/api/chats/550e8400-e29b-41d4-a716-446655440000" \
-H "Authorization: Bearer YOUR_API_KEY"
true
Notes
- Deleting a chat also removes all messages in the chat history
- If the chat is shared, the shared version is also deleted
- Orphaned tags (tags with no remaining chats) are automatically cleaned up
- Admin users can delete any chat regardless of ownership
- Non-admin users can only delete their own chats and require
chat.deletepermission
⌘I