Show examples in:
Delete a scheduled unpublishing

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 = '34';
const scheduledUnpublishing = await client.scheduledUnpublishing.destroy(itemId);
console.log(scheduledUnpublishing);
}
run();