Delete File
beta.files.delete(strfile_id, FileDeleteParams**kwargs) -> DeletedFile
/v1/files/{file_id}?beta=true
Delete File
Parameters
file_id: str
ID of the File.
Returns
Delete File
Python
from anthropic import Anthropic
client = Anthropic(
api_key="my-anthropic-api-key",
)
deleted_file = client.beta.files.delete(
file_id="file_id",
)
print(deleted_file.id){
"id": "id",
"type": "file_deleted"
}Returns Examples
{
"id": "id",
"type": "file_deleted"
}