Delete file
api/compliance/apps/chats/files/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/files/delete Changed · +9 / -14 lines
# Delete file ## Path parameters ## Headers ## Returns ## Example ### Response (200) ## Delete file ### Path Parameters ### Header Parameters ### Returns ### Example #### Response
---- -title: Delete file -url: https://platform.claude.com/docs/en/api/compliance/apps/chats/files/delete ---- +# Delete file -## Delete file +**DELETE** `/v1/compliance/apps/chats/files/{claude_file_id}` -**delete** `/v1/compliance/apps/chats/files/{claude_file_id}` - Permanently deletes a specific file. This is a destructive operation that cannot be undone. -### Path Parameters +## Path parameters - `claude_file_id: string` The file ID (tagged ID, e.g., claude_file_abc123) -### Header Parameters +## Headers - `"x-api-key": optional string` -### Returns +## Returns - `id: string`
Constant string confirming deletion - - `"claude_file_deleted"` + default: claude_file_deleted -### Example +## Example -```http +```bash curl https://api.anthropic.com/v1/compliance/apps/chats/files/$CLAUDE_FILE_ID \ -X DELETE \ -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY" ``` -#### Response +### Response (200) ```json {