import { buildClient } from '@datocms/cma-client-node';
async function run() {
const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });
const result = await client.items.bulkDestroy({
items: [
{
type: 'item',
id: 'hWl-mnkWRYmMCSTq4z_piQ'
}
]
});
console.log(result);
}
run();