latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-191441,1001.9 MB

0042750ea1ee

Delete File

delete/v1/files/{file_id}

Path parameters

file_idstring required

ID of the File.

ID of the File.

Headers

anthropic-versionstring

The version of the Claude API you want to use.

Read more about versioning and our version history here.

The version of the Claude API you want to use.

Read more about versioning and our version history here.

x-api-keystring

Your unique API key for authentication.

This key is required in the header of all API requests, to authenticate your account and access Anthropic's services. Get your API key through the Console. Each key is scoped to a Workspace.

Your unique API key for authentication.

This key is required in the header of all API requests, to authenticate your account and access Anthropic's services. Get your API key through the Console. Each key is scoped to a Workspace.

Response

Successful Response

idstring required

ID of the deleted file.

type'file_deleted'

Deleted object type.

For file deletion, this is always "file_deleted".

Example response

{
  "id": "file_011CNha8iCJcU1wXNR6q4V8w"
}