Hi folks! What's the proper Prefect method for _re...
# prefect-community
m
Hi folks! What's the proper Prefect method for _removing_/_unregistering_ a flow?
d
Hey @Mary Clair Thompson! Do you want to keep the flow’s history or are you okay deleting it?
There’s a delete button on the Flow page in the UI
m
i'd actually prefer to delete it.
yes so the question would be does that actually remove the history?
d
It deletes all objects associated with the flow (runs, tasks, logs, etc)
m
perfect.
d
It’s a postgres delete cascade
👍 1
you got it!
m
Is there a pythonic way to unregister?
ie the complement of flow.register()?
d
Not exactly
well
let me double check actually
m
haha cool, thanks.
d
Nah
You’d need to instantiate a client and use a graphql mutation
Client.graphql
If you wanted to contribute one we’d welcome the PR!
👍 1
m
ok good to know! I'll definitely look into adding that functionality 🙂