Skip to main content
DELETE
/
api
/
v1
/
chat-history
/
chats
/
{chat_id}
Delete Chat
curl --request DELETE \
  --url https://api.mor.org/api/v1/chat-history/chats/{chat_id} \
  --header 'Authorization: <authorization>'
Delete or archive a chat. By default, chats are archived rather than permanently deleted. Use the archive_only parameter to control this behavior.

Headers

Authorization
string
required
Bearer token (JWT) from OAuth2 login

Path Parameters

chat_id
string
required
The ID of the chat to delete

Query Parameters

archive_only
boolean
default:true
If true, archives the chat. If false, permanently deletes it.

Response

Returns 204 No Content on successful deletion.
Archive vs Delete:
  • Archive (archive_only=true): Hides the chat from your list but keeps the data for potential recovery
  • Permanent Delete (archive_only=false): Irreversibly removes the chat and all associated messages
Irreversible: When archive_only=false, the chat and all its messages are permanently deleted. This action cannot be undone.
Use archiving as the default to prevent accidental data loss. Only use permanent deletion when you’re certain you won’t need the conversation history.