Hapus File
DELETE/v1/files/{file_id}
Hapus File
Parameters
Returns
Hapus File
import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({
apiKey: process.env["ANTHROPIC_API_KEY"] // This is the default and can be omitted
});
const betaDeletedFile = await client.beta.files.delete("file_id");
console.log(betaDeletedFile.id);Response 200
{
"id": "file_011CNha8iCJcU1wXNR6q4V8w",
"type": "file_deleted"
}Returns Examples
Response 200
{
"id": "file_011CNha8iCJcU1wXNR6q4V8w",
"type": "file_deleted"
}