Delete File
/v1/files/{file_id}
Delete File
Path Parameters
Header Parameters
Returns
Delete File
curl https://api.anthropic.com/v1/files/$FILE_ID \
-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": "id",
"type": "file_deleted"
}Returns Examples
Response 200
{
"id": "id",
"type": "file_deleted"
}