Sorry, no results found for "".

Show examples in:
Javascript HTTP
Endpoint info
Available examples

Content Management API > Record

Delete multiple records

Query parameters

filter[ids] string

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

Example: "42,554"

Examples

import { buildClient } from "@datocms/cma-client-node";
async function run() {
const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
const item = await client.items.batchDestroy({ "filter[ids]": "42,554" });
// Check the 'Returned output' tab for the result ☝️
console.log(item);
}
run();
[]