SPB Git

Repository Public

delete.md 927 B 52 lines markdown

1---2title: Delete file3url: https://platform.claude.com/docs/en/api/compliance/apps/chats/files/delete4---56# Delete file78**DELETE** `/v1/compliance/apps/chats/files/{claude_file_id}`910Permanently deletes a specific file. This is a destructive11operation that cannot be undone.1213## Path parameters1415- `claude_file_id: string`1617  The file ID (tagged ID, e.g., claude_file_abc123)1819## Headers2021- `"x-api-key": optional string`2223## Returns2425- `type: optional "claude_file_deleted"`2627  Constant string confirming deletion2829  default: claude_file_deleted3031- `id: string`3233  The ID of the file that was deleted3435## Example3637```bash38curl https://api.anthropic.com/v1/compliance/apps/chats/files/$CLAUDE_FILE_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_file_xyz789",49  "type": "claude_file_deleted"50}51```52
Files main
Menu

Theme