Show examples in:
    Delete a workflow

    Examples

    Example code:
    import { buildClient } from '@datocms/cma-client-node';
    async function run() {
    const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });
    const workflowId = 'approval_by_editors';
    await client.workflows.destroy(workflowId);
    }
    run();