Show examples in:
    Destroy items in bulk

    Parameters

    items  Array of { type: "item", id: item.id }  Required

    Records to delete

    Examples

    Example code:
    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: '4235'
    }
    ]
    });
    console.log(result);
    }
    run();
    Returned output:
    []