Show examples in:
Delete a record

Returns

Returns a item resource object.

Examples

Example Basic example
import { buildClient } from '@datocms/cma-client-node';
async function run() {
const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });
const itemId = 'hWl-mnkWRYmMCSTq4z_piQ';
const item = await client.items.destroy(itemId);
console.log(item);
}
run();