Repository Public
1---2title: Delete File3url: https://platform.claude.com/docs/en/api/files/delete4---56# Delete File78**DELETE** `/v1/files/{file_id}`910Delete File1112## Path parameters1314- `file_id: string`1516 ID of the File.1718## Headers1920- `"anthropic-workspace-id": optional string`2122## Returns2324- `DeletedFile object`2526 - `type: optional "file_deleted"`2728 Deleted object type.2930 For file deletion, this is always `"file_deleted"`.3132 default: file_deleted3334 - `id: string`3536 ID of the deleted file.3738## Example3940```bash41curl https://api.anthropic.com/v1/files/$FILE_ID \42 -X DELETE \43 -H 'anthropic-version: 2023-06-01' \44 -H "X-Api-Key: $ANTHROPIC_API_KEY"45```4647### Response (200)4849```json50{51 "id": "file_011CNha8iCJcU1wXNR6q4V8w",52 "type": "file_deleted"53}54```55