Cancel Workflow In Progress. Open your list click on. Or a workflow stops responding when users submit task information the workflow can be canceled.
As far as I understand the end user would have to cancel the running workflow in the following method. You can logically delete the workitem from SWIA Click on the haeader workitem goto-Technical Workitem display-edit-change-delete logically. Go to workflow service health page by site settings workflow settings click workflow health next to workflows click the info icon terminate all 2.
The workflows do have a Pause until this datetime but I thought they would be removed along with the records in the list.
Use csom to change it. Foreach item in listItems foreach wf in itemWorkflows ifwfInternalState -match Error Cancel Workflows MicrosoftSharePointWorkflowSPWorkflowManagerCancelWorkflowwf. The status of the workflow will be set to Canceled. The workflows do have a Pause until this datetime but I thought they would be removed along with the records in the list.