import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const fileDelete = await client.beta.files.delete('file_id');
console.log(fileDelete.id);
{
"id": "<string>",
"object": "file",
"deleted": true
}
import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const fileDelete = await client.beta.files.delete('file_id');
console.log(fileDelete.id);
{
"id": "<string>",
"object": "file",
"deleted": true
}
Successful Response
The response is of type object
.