Bulk Cancellation of Power Automate Flow Runs
What if you saw 15.000 items in Power Automate history in "Running" state and there was a notification bar writing performance degradation and also Azure reports clearly identified massive requests due to ineffective nesting loops in a cloud flow and long delays in sub-flow calls .
Are you going to delete all one by one? No way :)
I generated below PowerShell commands in order to cancel all runs in a supported way that saved my life. thus generated .ps1 file that contains necessary commands to help me.
It takes 2 parameters;
- Environment Unique Id
- Cloud Flow Unique Id to be cancelled of all suspended runs.