Delete chat
api/compliance/apps/chats/delete
Nearest release: v2.1.245, published an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
api/compliance/apps/chats/delete Changed · +9 / -14 lines
# Delete chat ## Path parameters ## Headers ## Returns ## Example ### Response (200) ## Delete chat ### Path Parameters ### Header Parameters ### Returns ### Example #### Response
---- -title: Delete chat -url: https://platform.claude.com/docs/en/api/compliance/apps/chats/delete ---- +# Delete chat -## Delete chat +**DELETE** `/v1/compliance/apps/chats/{claude_chat_id}` -**delete** `/v1/compliance/apps/chats/{claude_chat_id}` - Permanently deletes a chat and all associated messages and files. This is a destructive operation that cannot be undone. -### Path Parameters +## Path parameters - `claude_chat_id: string` The chat ID (tagged ID, e.g., claude_chat_abc123) -### Header Parameters +## Headers - `"x-api-key": optional string` -### Returns +## Returns - `id: string`
Constant string confirming deletion - - `"claude_chat_deleted"` + default: claude_chat_deleted -### Example +## Example -```http +```bash curl https://api.anthropic.com/v1/compliance/apps/chats/$CLAUDE_CHAT_ID \ -X DELETE \ -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY" ``` -#### Response +### Response (200) ```json {