Deletion protection for databases and branches
You can now enable deletion protection for PlanetScale databases and branches. PlanetScale blocks deletion until protection is disabled, adding an explicit step before a database or branch can be removed.
Enable deletion protection when creating a branch, or manage it later from the database settings or branch details page. You can also configure it through the API.
The PlanetScale Terraform provider v1.8.0 adds deletion_protected to the planetscale_vitess_branch and planetscale_postgres_branch resources. To delete a protected Terraform-managed branch, first set deletion_protected = false and apply, then remove the resource and apply again.
Database API documentation · Branch API documentation · Terraform provider documentation