Hi is it possible to clear all data from Prefect (...
# prefect-community
m
Hi is it possible to clear all data from Prefect (2.0b12) on the hosted version? Similar to locally doing
prefect orion database reset -y
?
👀 1
1
j
You’re asking about on Prefect Cloud?
m
yes sir
r
don’t know if it can help, the workaround I’ve used to clear all data was to delete the workspace and create a brand new one
💯 1
m
thanks Riccardo. Sounds like a not so optimal solution in my opinion though.
j
i think posting to the api routes
api/admin/database/drop
and
api/admin/database/create
should have the same result than database reset.
a
it is by far not an optimal solution but deleting things in databases in a performant and reliable way is a hard challenge which is why we didn't rush with this but deleting things like old runs or blocks is definitely on the roadmap
🙏 1
👍 1
m
but we already have
prefect orion database reset -y
. does that mean it is not safe to run?
a
this is only for OSS
there is currently no way to clear the entire workspace