Skip to main content
DELETE
Delete File
Every request requires anthropic-beta: files-api-2025-04-14.

Authorizations

X-Api-Key
string
header
default:sk-ant-local-default
required

OMA workspace API key.

Headers

anthropic-beta
string
required

Optional header to specify the beta version(s) you want to use.

To use multiple betas, use a comma separated list like beta1,beta2 or specify the header multiple times for each beta.

anthropic-version
string

The version of the OMA API you want to use.

Read more about versioning and our version history here.

Path Parameters

file_id
string
required

ID of the File.

Query Parameters

beta
enum<boolean>
required

Selects the beta API contract for this endpoint. Must be true.

Available options:
true

Response

Successful Response

id
string
required

ID of the deleted file.

Example:

"file_011CNha8iCJcU1wXNR6q4V8w"

type
string
default:file_deleted

Deleted object type.

For file deletion, this is always "file_deleted".

Allowed value: "file_deleted"