I have a cloud flow that has thousands of flow runs stuck in the "running" status. I would like to cancel them all. I've been trying to use PowerShell and the "m365 flow run list" command to get all running flows, loop thru them and cancel each. The problem is "m365 flow run list" only returns 50 records. If there's a way to get that command to return more records, or better, to filter the records to only status of "running", then I could work my way through it.
I also read that if I copy the flow and delete the original, it will also delete all the runs. But this flow is part of a managed solution, so I can't delete it. And I can't uninstall the entire solution as that would mess up a bunch of other flows.
Anyone have a suggestion for how I can cancel the "running" flow runs?