Choose your language:
    Destroy items in bulk
    Parameters
    items  Array<item.id>  Optional

    Records to delete

    Examples

    Example code:
    const { SiteClient } = require('datocms-client');
    async function run() {
    const client = new SiteClient('YOUR-API-TOKEN');
    const result = await client.item.bulkDestroy({
    items: [
    '4235'
    ]
    });
    console.log(result);
    }
    run();
    Returned output:
    > node example.js
    []