Skip to main content
Nintex Community Menu Bar
Answer

Bulk remove workflows

  • October 17, 2019
  • 2 replies
  • 177 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? 

Best answer by kat_new

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!

2 replies

Forum|alt.badge.img+17
  • October 22, 2019

@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. 


  • Author
  • Answer
  • October 24, 2019

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!