https://prefect.io logo
Title
a

Aurélien Vallée

05/30/2021, 6:08 AM
Im having issues when trying to delete a flow with a self-hosted prefect server. If I check "delete all versions" of the flow, then I get the error message "We could not delete your flow. Please try again. If this problem continues, contact help@prefect.io"
j

Jenny

05/30/2021, 2:19 PM
Hi @Aurélien Vallée - How many versions of your flow do you have? Some users have had issues with the mutation timing out if they're trying to delete a large flow or many versions. You could try deleting individual versions and then trying again with all. (Side note that we optimize for this in Cloud.)
a

Aurélien Vallée

05/30/2021, 3:30 PM
I have a si gle flow with 3 versions, definitely not overcharged
I just notice that I can individually remove versions except the first one
j

Jenny

05/30/2021, 5:03 PM
Hmmm.... Yes unless it's a really large flow I would not expect any timeouts with 3 versions. I spun up my version of Sever to test this and can delete flows / can't replicate your issue. I wonder if there's something unusual about that first flow? Have you seen any other errors from it?
You could also try the following mutation in the Interactive API:
mutation {
  delete_flow (input:{flow_id: "FLOW_ID"}) {
    success
  }
}
You can get the flow ID from the details tab of the flow tile on the flow page.