Workflow - deleteWorkflow(GlideRecord current)

Deletes all the workflows on the record.

Table 1. Parameters
Name Type Description
current GlideRecord GlideRecord for which the caller wants to delete all workflows. This can be any record on any table.
Table 2. Returns
Type Description
void

//where current is a task record with a workflow context
      var wkfw = new Workflow();
      wkfw.deleteWorkflow(current);