Deleting All Flow-Runs Using CLI

How to delete all flow-runs using CLI or command line?

You can delete all flow-runs using the following command:

❯ prefect flow-run ls | awk 'NR>3 {print $2}' | while read line
do
    prefect flow-run delete $line
done

However, it would be faster to use the client to do this async if you have a lot of runs to delete.


This topic was created by Marvin.