Show examples in:
Delete a scheduled publication

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