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').SiteClient;
    const client = new SiteClient('YOUR-API-TOKEN');
    client.upload.bulkDestroy({
    uploads: [
    '666'
    ]
    })
    .catch((error) => {
    console.error(error);
    });