SPB Git

Repository Public

delete.md 945 B 52 lines markdown

1---2title: Delete chat3url: https://platform.claude.com/docs/en/api/compliance/apps/chats/delete4---56# Delete chat78**DELETE** `/v1/compliance/apps/chats/{claude_chat_id}`910Permanently deletes a chat and all associated messages and11files. This is a destructive operation that cannot be undone.1213## Path parameters1415- `claude_chat_id: string`1617  The chat ID (tagged ID, e.g., claude_chat_abc123)1819## Headers2021- `"x-api-key": optional string`2223## Returns2425- `type: optional "claude_chat_deleted"`2627  Constant string confirming deletion2829  default: claude_chat_deleted3031- `id: string`3233  The ID of the Claude chat that was deleted3435## Example3637```bash38curl https://api.anthropic.com/v1/compliance/apps/chats/$CLAUDE_CHAT_ID \39    -X DELETE \40    -H 'anthropic-version: 2023-06-01' \41    -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"42```4344### Response (200)4546```json47{48  "id": "claude_chat_abc123",49  "type": "claude_chat_deleted"50}51```52
Files main
Menu

Theme