Search...
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.
Description
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.
Syntax
function deleteWorkflow(workflowId: string): Promise<void>
deleteWorkflow Parameters
NAME
TYPE
DESCRIPTION
workflowId
string
ID of the workflow to delete.
Returns
Return Type:
Promise<void>
Was this helpful?
Delete a workflow
Copy Code
1import { Permissions, webMethod } from 'wix-web-module';2import { workflows } from 'wix-crm-backend';34export const deleteWorkflow = webMethod(Permissions.Anyone, (workflowId) => {5 return workflows.deleteWorkflow(workflowId);6});78// Returns a promise that resolves to void.