Guy Altman

01/31/2023, 8:24 PM
Is there an easy way to mass delete late run flows? preferably on the cloud UI?

Rob Freedy

02/01/2023, 4:15 PM
Hey @Guy Altman!! For 2.0, I would recommend checking out this discourse post. Similarly for 1.0, you can use either the API in python or the Interactive API in the UI to delete flow runs with a certain state (see here for how to target specific flow runs, this is not an exact example but similar syntax).

Guy Altman

02/01/2023, 9:02 PM
@Rob Freedy Thanks for the response. Prefect 2 here. I'm using that first code snippet you linked and it works but it's capped at 200 at a time. I have about 16,000 late flow runs. Is there a limit to how much the orion client can retrieve?