https://prefect.io logo
m

Mikkel Duif

07/25/2022, 4:48 PM
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

Jeff Hale

07/25/2022, 6:38 PM
You’re asking about on Prefect Cloud?
m

Mikkel Duif

07/25/2022, 6:40 PM
yes sir
r

Riccardo Tesselli

07/26/2022, 7:03 AM
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

Mikkel Duif

07/26/2022, 8:18 AM
thanks Riccardo. Sounds like a not so optimal solution in my opinion though.
j

Justin Trautmann

07/26/2022, 8:38 AM
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

Anna Geller

07/26/2022, 12:56 PM
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

Mikkel Duif

07/26/2022, 2:20 PM
but we already have
prefect orion database reset -y
. does that mean it is not safe to run?
a

Anna Geller

07/26/2022, 3:29 PM
this is only for OSS
there is currently no way to clear the entire workspace
5 Views