Hen rik
11/28/2023, 7:18 PMMarvin
11/28/2023, 7:19 PM❯ prefect flow-run ls | awk 'NR>3 {print $2}' | while read line
do
prefect flow-run delete $line
done
This command lists all flow runs, extracts the flow run IDs, and then deletes each flow run.
As for deleting subflows, they are just flows called from within a flow. So, you would need to delete them as you would delete any other flow.
Please note that this operation should be used with caution as it will permanently delete the flow runs and cannot be undone.