If I use prefect cloud, does that mean that I don't need to set up a database then?
n
Nate
06/20/2023, 5:59 PM
thats correct 🙂
k
kasteph
06/20/2023, 6:13 PM
@Nate thanks! How would I deal with issues like this then? https://prefect-community.slack.com/archives/CL09KU1K7/p1684238452385819
I manually deleted all the "cancelling" flow runs via the cloud UI but it would be great if I could delete it via the CLI as well, especially if I have 100+ flow runs in this state.
n
Nate
06/20/2023, 6:14 PM
are you looking to bulk delete flow runs?
k
kasteph
06/20/2023, 6:14 PM
Yep, since many of them are/were stuck in the cancelling state
n
Nate
06/20/2023, 6:20 PM
gotcha, there's a bunch of different ways you could do this but this is probably the best bet
a slightly more hacky way is this
Copy code
prefect flow-run ls | awk 'NR>3 {print $2}' | while read -r line
do
prefect flow-run delete "$line"
done
k
kasteph
06/20/2023, 9:35 PM
Great, thanks @Nate!
n
Nate
06/21/2023, 6:10 AM
i realize now only the api endpoints themselves were linked, but just to note there are client methods that would make those api calls a lot easier 😄
read flow runsdelete flow run (by ID)
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.