Choose your language:
    Delete a workflow

    Examples

    Example code:
    const SiteClient = require('datocms-client').SiteClient;
    const client = new SiteClient('YOUR-API-TOKEN');
    const workflowId = 'approval_by_editors';
    client.workflow.destroy(workflowId)
    .then(() => {
    console.log('Done!');
    })
    .catch((error) => {
    console.error(error);
    });