Show examples in:
Destroy uploads

Delete assets in bulk

Body Parameters

uploads  Required  Array of { type: "upload", id: upload.id }

Assets to delete

Examples

Example Basic example
import { buildClient } from '@datocms/cma-client-node';
async function run() {
const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });
const result = await client.uploads.bulkDestroy({
uploads: [
{
type: 'upload',
id: 'q0VNpiNQSkG6z0lif_O1zg'
}
]
});
console.log(result);
}
run();