Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

Delete File changedapi/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+9added
Lines−14removed
From line 1 where the diff opens
First seen 20 Aug 2026 this site's first read of the page
Recorded edits6to this page, all time

# Delete File ## Path parameters ## Returns ## Example ### Response (200) ## Delete File ### Path Parameters ### Returns ### Example #### Response

The whole hunk

from line 1, old and new numbered
/
lines
from line 1
1---
2title: Delete File
3url: https://platform.claude.com/docs/en/api/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### Returns
13## Returns
1914 
20- `DeletedFile object { id, type }`
15- `DeletedFile object`
2116 
2217 - `id: string`
2318 
from line 24
2924 
3025 For file deletion, this is always `"file_deleted"`.
3126 
32 - `"file_deleted"`
27 default: file_deleted
3328 
34### Example
29## Example
3530 
36```http
31```bash
3732curl https://api.anthropic.com/v1/files/$FILE_ID \
3833 -X DELETE \
3934 -H 'anthropic-version: 2023-06-01' \
from line 35
4035 -H "X-Api-Key: $ANTHROPIC_API_KEY"
4136```
4237 
43#### Response
38### Response (200)
4439 
4540```json
4641{
Feedback