Join Slack
Powered by
Is there a way to delete late flows? We have 6,000...
# ask-community
c
Charlie Henry
07/17/2023, 4:18 PM
Is there a way to delete late flows? We have 6,000+ queued up over the weekend and don't want to delete them manually. I turned on some automation to remove them but it doesn't seem to work retroactively
✅ 1
Charlie Henry
07/17/2023, 4:24 PM
found it
https://prefect-community.slack.com/archives/CL09KU1K7/p1686669412262099?thread_ts=1686650785.248449&cid=CL09KU1K7
t
Taylor Curran
07/17/2023, 6:35 PM
Using our API might be the right call here: Here is an example file:
https://discourse.prefect.io/t/example-of-filtering-task-run-data-with-prefects-rest-api/2957
Taylor Curran
07/17/2023, 6:37 PM
https://docs.prefect.io/2.10.21/api-ref/rest-api/#interacting-with-the-rest-api
Taylor Curran
07/17/2023, 6:38 PM
https://docs.prefect.io/2.10.21/api-ref/rest-api-reference/#tag/Flow-Runs/operation/delete_flow_run_flow_runs__id__delete
Open in Slack
Previous
Next