https://prefect.io logo
Title
a

ar

05/19/2023, 4:55 AM
hi all may i know how to delete all flow-runs using cli or command line, the 'prefect flow-run delete' required flow-run uuid. i want to delete all at one
1
n

Nate

05/19/2023, 1:59 PM
hi @ar - you could do
❯ prefect flow-run ls | awk 'NR>3 {print $2}' | while read line
do
    prefect flow-run delete $line
done
although it would probably be faster to use the client to do this async if you have a lot of runs to delete
🙌 2
a

ar

05/19/2023, 3:28 PM
thank you will try windows command, i see