tursodatabase / turso-cli

Command line interface to Turso.
https://turso.tech
MIT License
220 stars 37 forks source link

Disallow destruction of orgs with databases #538

Open CodingDoug opened 1 year ago

CodingDoug commented 1 year ago

There is nothing stopping anyone from destroying an org with a database. The CLI should prevent that.

avinassh commented 1 year ago

Alternative:

We should show that there are databases attached to the org, that they will be deleted too. Once the user confirms, we should all the databases and the org.

We can also add a flag which deletes the databases directly, something like turso org destroy --destroy-dbs <org-name>

penberg commented 1 year ago

I think turso db destroy should ask for confirmation by default even if there are no databases around because it's such a destructive operation and we don't have undo.