Delete or archive a chat.
By default, chats are archived rather than permanently deleted. Use the archive_only parameter to control this behavior.
Bearer token (JWT) from OAuth2 login
Path Parameters
The ID of the chat to delete
Query Parameters
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.