Terminate running or suspended Workflows in SharePoint 2013 or 2016 - Fabian Neve

About SharePoint, Javascript, PowerShell, and other technical stuff

Wednesday, October 31, 2018

Terminate running or suspended Workflows in SharePoint 2013 or 2016

There are many options to kill workflows in SharePoint which are built on SharePoint 2010 platform. It is a bit more difficult to terminate those on 2013 platform.

Here is a script that terminates all workflows based on their status. It is also possible to filter for specific items with a CAML query and it iterates trough large lists in batch size (of eg. 2000 items), so you won't run in a timeout or memory issue.

In the script there is a second part that will take care of the 2010 workflows, which is located between comment tags.






No comments:

Post a Comment