Permanently removes the running workflow from a document. All workflow tasks, task attachments, running workflow steps, and the workflow execution record are deleted. The document’s workflow fields are cleared so it can be submitted to a new workflow.
This is a hard delete with no email notifications. To stop a workflow gracefully (with notifications to task assignees), use StopCurrentWorkflow instead.
/srv.asmx/RemoveCurrentWorkflow
/srv.asmx/RemoveCurrentWorkflow?authenticationTicket=...&path=.../srv.asmx/RemoveCurrentWorkflow (form data)http://tempuri.org/RemoveCurrentWorkflow| Parameter | Type | Required | Description |
|---|---|---|---|
authenticationTicket |
string | Yes | Authentication ticket obtained from AuthenticateUser. |
path |
string | Yes | Full path of the document whose running workflow should be removed (e.g. /Cabinet/Project/document.pdf). |
<root success="true" />
<root success="false" error="Access Denied" />
The calling user must be either:
Anonymous access is not permitted.
| Condition | Required |
|---|---|
| Document must exist at the specified path | Yes |
Document must currently be in a workflow (CurrentFlowId > 0) |
Yes |
| No tasks in the workflow may have been both started and finished | Yes |
If any task has both a StartDate and a FinishDate set (i.e., it was completed), the operation is rejected. Use StopCurrentWorkflow if completed tasks are present.
CurrentFlowId reset to 0).GET /srv.asmx/RemoveCurrentWorkflow
?authenticationTicket=3f7a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c
&path=/Cabinet/ProjectDocs/proposal.pdf
HTTP/1.1
Host: yourserver
POST /srv.asmx/RemoveCurrentWorkflow HTTP/1.1
Host: yourserver
Content-Type: application/x-www-form-urlencoded
authenticationTicket=3f7a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c&path=/Cabinet/ProjectDocs/proposal.pdf
CurrentFlowId field.| Error | Description |
|---|---|
[900] |
Authentication failed -“ invalid credentials. |
[901] |
Session expired or invalid authentication ticket. |
| Document not found | No document exists at the specified path. |
| Document not in workflow | The document does not have an active running workflow. |
| Access Denied | Calling user is not the workflow submitter or a workflow supervisor. |
| Finished tasks exist | One or more tasks have already been completed; the workflow cannot be removed. |