Delete File
Parameters
Returns
Delete File
import os
from anthropic import Anthropic
client = Anthropic(
api_key=os.environ.get(
"ANTHROPIC_API_KEY"
), # This is the default and can be omitted
)
beta_deleted_file = client.beta.files.delete(
file_id="file_id",
)
print(beta_deleted_file.id)Response 200
{
"id": "file_011CNha8iCJcU1wXNR6q4V8w",
"type": "file_deleted"
}Returns Examples
Response 200
{
"id": "file_011CNha8iCJcU1wXNR6q4V8w",
"type": "file_deleted"
}