Solved

Bulk remove workflows

  • 17 October 2019
  • 2 replies
  • 128 views

Is it possible to bulk remove workflows from sites?

We have hundreds of project sites, and we want to remove the old Workflow from them all.

On prem had powershell commands for this, is there something similar in o365? 

icon

Best answer by kat_new 24 October 2019, 23:32

View original

2 replies

Badge +17

@kat_new here is a script that will help you find all workflows in O365. I would suggest modifying it to have it delete the ones you find as needed. 

Thanks @eharris04 


I ended up using PnP - Get-PnPWorkflowDefinition to export all worklfows to a csv,


and will be testing (hopefully successfully) Remove-PnPWorkflowDefinition today.


 


Full solution is to PowerShell Import-Csv, Foreach $site in $sites, Remove. 


 


Thanks!

Reply