turso-cli
turso-cli copied to clipboard
Disallow destruction of orgs with databases
There is nothing stopping anyone from destroying an org with a database. The CLI should prevent that.
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>
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.