If I delete Prefect flow directly from the databas...
# ask-community
c
If I delete Prefect flow directly from the database with SQL, is that bad practice?
n
hi @Christian Sanchez I generally use the API for this, whether rest directly or our python client like
snippet_py.py
is there a reason you wouldn't want to do it something like this way? if you delete directly from the db, i suspect you'd risk db errors related to missing references to that flow, not exactly sure of the relations of the top of my head
c
Thanks for commenting, @Nate. Just to delete old flows… no reason other than cleaning old stuff up but I guess there really is no reason to.