Protect a database
Organization Administrators and Database Administrators can enable protection from the database Settings page.1
From the PlanetScale organization dashboard, select the database
2
Open Settings
3
Turn on Prevent database deletion
deletion_protected).
Protect a branch
Individual branches can be protected separately from the database. Enable Prevent branch deletion when you create a branch, or later from the branch page. From the PlanetScale CLI:deletion_protected).
Terraform can enforce the same safeguard with deletion_protected on Neki branches, or with lifecycle { prevent_destroy = true } on other branch resources. See Deletion protection in the Terraform documentation.

