https://prefect.io logo
Title
m

Muhammad Tariq

03/02/2023, 1:13 AM
Hi everyone - I need some help. I have somehow created a flow and deployment that aren't required. I want to delete them but for some reason, I can't. I can't delete deployment or flow. I have both
deployment_id
and
flow_id
. I even tried to do it through
prefect_api
- Still it throws errors like
Service Unavailable
when deleting deployment and
Cannot find flow
when deleting flow. Can someone help me with this? UI would just say
failed to delete deployment
j

Jacob Bedard

03/02/2023, 1:16 AM
I'm still a noob with prefect v2, but by any chance, is the flow schedule still on?
m

Muhammad Tariq

03/02/2023, 1:16 AM
thats turned off
there are no scheduled upcoming flows
@James Sopkin wondering if you could help?
j

James Sopkin

03/02/2023, 3:37 PM
hmmm, that's very strange. I've seen this before and the solution was to delete flow runs first then delete the deployment
If you go to the deployment, are you able to manually delete any of the runs?
z

Zanie

03/02/2023, 4:22 PM
It sounds like the query to delete the deployment is timing out
m

Muhammad Tariq

03/07/2023, 9:50 PM
Hi all, I wasn't able to delete deployment and had to reach out to prefect support to get it fixed, Thanks anyways