Delete File
DELETE/v1/files/{file_id}
Delete File
Path Parameters
file_id: string
ID of the File.
Header Parameters
Returns
Delete File
curl https://api.anthropic.com/v1/files/$FILE_ID?beta=true \
-X DELETE \
-H 'anthropic-version: 2023-06-01' \
-H 'anthropic-beta: files-api-2025-04-14' \
-H "X-Api-Key: $ANTHROPIC_API_KEY"Response 200
{
"id": "file_011CNha8iCJcU1wXNR6q4V8w",
"type": "file_deleted"
}Returns Examples
Response 200
{
"id": "file_011CNha8iCJcU1wXNR6q4V8w",
"type": "file_deleted"
}