turso-cli icon indicating copy to clipboard operation
turso-cli copied to clipboard

Disallow destruction of orgs with databases

Open CodingDoug opened this issue 2 years ago • 2 comments

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

CodingDoug avatar Jul 07 '23 19:07 CodingDoug

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>

avinassh avatar Jul 12 '23 06:07 avinassh

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.

penberg avatar Aug 15 '23 08:08 penberg