Choose your language:
    Delete a workflow

    Examples

    Example code:
    const { SiteClient } = require('datocms-client');
    async function run() {
    const client = new SiteClient('YOUR-API-TOKEN');
    const workflowId = 'approval_by_editors';
    await client.workflow.destroy(workflowId);
    }
    run();