Delete File
beta.files.delete(file_id, **kwargs) -> DeletedFile { id, type }
/v1/files/{file_id}?beta=true
Delete File
Parameters
file_id: String
ID of the File.
Returns
Delete File
Ruby
require "anthropic"
anthropic = Anthropic::Client.new(api_key: "my-anthropic-api-key")
deleted_file = anthropic.beta.files.delete("file_id")
puts(deleted_file){
"id": "id",
"type": "file_deleted"
}Returns Examples
{
"id": "id",
"type": "file_deleted"
}