Skip to main content
Nintex Community Menu Bar
Solved

Bulk remove workflows

  • Oct 17, 2019 9:55 AM UTC
  • 2 replies
  • 195 views
  • Translate All

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!

View original

2 replies

Forum|alt.badge.img+17
  • Oct 22, 2019 12:08 AM UTC

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

Translate

  • Author
  • Answer
  • Oct 24, 2019 9:32 PM UTC

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!

Translate