Delete File
DELETE
/v1/files/{file_id} https://api.anthropic.com
Parameters
path Path Parameters
| Name | Type |
|---|---|
file_id
required
ID of the File. | string |
header Header Parameters
| Name | Type |
|---|---|
anthropic-beta Optional header to specify the beta version(s) you want to use. To use multiple betas, use a comma separated list like | string |
anthropic-version The version of the Claude API you want to use. Read more about versioning and our version history here. | string |
x-api-key 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. | string |
Responses
200 application/json
Successful Response
interface FileDeleteResponse {
id: string;
type?: "file_deleted";
}
id: string;
type?: "file_deleted";
}
Client Errors
4XX application/json
Error response.
See our errors documentation for more details.
interface ErrorResponse {
error:InvalidRequestError | AuthenticationError | BillingError | PermissionError | NotFoundError | RateLimitError | GatewayTimeoutError | APIError | OverloadedError ;
request_id: string | null;
type: "error";
}
error:
request_id: string | null;
type: "error";
}