Hi everyone! Is there an api in PrefectClient to d...
# prefect-ui
g
Hi everyone! Is there an api in PrefectClient to delete a flow? I cannot find it in Prefect 2.20
j
hey just making sure you're talking about a
flow
and not a
flow_run
the client method would be here: https://github.com/PrefectHQ/prefect/blob/d4d350be76fce67ecb6accf94e12a65ac173dded/src/prefect/client/orchestration.py#L502-L517 so:
Copy code
client = get_client()
await client.delete_flow(<id of flow>)
g
yes, flow. Strange PyCharm is not suggesting it that is why I’ve asked. I will try to just execute the code then. Thanks!