This operation deletes a process instance using administrative access. Use it when an administrative script needs to remove a process instance for cleanup or remediation. If you don't need the elevated privileges, use Delete a Process Instance without them instead.
The base request is:
deleteProcessInstance(processInstanceId)
The following example deletes a process instance using an identifier stored in a process variable:
new RuntimeProcessInstanceAdminService()
.deleteProcessInstance(variables.processInstanceId);