deleteWorkflow( )


Deprecated. This function is being discontinued in the upcoming months. We are working to provide alternatives, and we'll provide timely updates before implementing any changes. We understand that this transition might present challenges, and we appreciate your patience and understanding.

Deletes a workflow.

The deleteWorkflow() function returns a Promise when the specified workflow has been deleted.

This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the Workflow API, see Retrieving IDs.

Method Declaration
Copy
function deleteWorkflow(workflowId: string): Promise<void>;
Method Parameters
workflowIdstringRequired

ID of the workflow to delete.

Delete a workflow
JavaScript
import { Permissions, webMethod } from "wix-web-module"; import { workflows } from "wix-crm-backend"; export const deleteWorkflow = webMethod(Permissions.Anyone, (workflowId) => { return workflows.deleteWorkflow(workflowId); }); // Returns a promise that resolves to void.
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?