import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: process.env['SGP_API_KEY'], // This is the default and can be omitted
});
const file = await client.beta.files.delete('file_id');
console.log(file.id);{
"id": "<string>",
"object": "<string>",
"deleted": true
}import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: process.env['SGP_API_KEY'], // This is the default and can be omitted
});
const file = await client.beta.files.delete('file_id');
console.log(file.id);{
"id": "<string>",
"object": "<string>",
"deleted": true
}