Delete File changedapi/beta/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.
Recorded here
Lines+10added
Lines−15removed
From line
1
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits18to this page, all time
# Delete File ## Path parameters ## Headers ## Returns ## Example ### Response (200) ## Delete File ### Path Parameters ### Header Parameters ### Returns ### Example #### Response
The whole hunk
from line 1, old and new numbered
/
from line 1
1---
2title: Delete File
3url: https://platform.claude.com/docs/en/api/beta/files/delete
4---
1# Delete File
52
6## Delete File
3**DELETE** `/v1/files/{file_id}`
74
8**delete** `/v1/files/{file_id}`
9
105Delete File
116
12### Path Parameters
7## Path parameters
138
149- `file_id: string`
1510
1611 ID of the File.
1712
18### Header Parameters
13## Headers
1914
2015- `"anthropic-beta": optional array of AnthropicBeta`
2116
from line 88
9388
9489 - `"mid-conversation-tool-changes-2026-07-01"`
9590
96### Returns
91## Returns
9792
98- `BetaDeletedFile object { id, type }`
93- `BetaDeletedFile object`
9994
10095 - `id: string`
10196
from line 102
107102
108103 For file deletion, this is always `"file_deleted"`.
109104
110 - `"file_deleted"`
105 default: file_deleted
111106
112### Example
107## Example
113108
114```http
109```bash
115110curl https://api.anthropic.com/v1/files/$FILE_ID \
116111 -X DELETE \
117112 -H 'anthropic-version: 2023-06-01' \
from line 114
119114 -H "X-Api-Key: $ANTHROPIC_API_KEY"
120115```
121116
122#### Response
117### Response (200)
123118
124119```json
125120{
No line in this hunk matches that.