import Surge from '@surgeapi/node';
const client = new Surge({
apiKey: process.env['SURGE_API_KEY'], // This is the default and can be omitted
});
const recording = await client.recordings.delete('rec_01kfyc9dgdec1avkgs7tng8htg');
console.log(recording.id);
Deletes a recording. The recording file will be removed from storage asynchronously.
DELETE
/
recordings
/
{id}
JavaScript
Copy
Ask AI
import Surge from '@surgeapi/node';
const client = new Surge({
apiKey: process.env['SURGE_API_KEY'], // This is the default and can be omitted
});
const recording = await client.recordings.delete('rec_01kfyc9dgdec1avkgs7tng8htg');
console.log(recording.id);