Show examples in:
Delete multiple records

Query parameters

filter[ids]  Required  string  Example: "42,554"

IDs of records to delete, comma separated (a maximum of 200 IDs are allowed per request)

Examples

Example Basic example
import { buildClient } from '@datocms/cma-client-node';
async function run() {
const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });
const result = await client.items.batchDestroy({
'filter[ids]': '42,554'
});
console.log(result);
}
run();