Delete File
require "anthropic"
anthropic = Anthropic::Client.new(api_key: "my-anthropic-api-key")
beta_deleted_file = anthropic.beta.files.delete("file_id")
puts(beta_deleted_file){
"id": "file_011CNha8iCJcU1wXNR6q4V8w",
"type": "file_deleted"
}Returns Examples
{
"id": "file_011CNha8iCJcU1wXNR6q4V8w",
"type": "file_deleted"
}