Choose your language:
    Destroy uploads

    Delete assets in bulk

    Parameters
    uploads  Array<upload.id>  Optional

    Assets to delete

    Examples

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