Skip to content

Commit

Permalink
howto: remove a database
Browse files Browse the repository at this point in the history
  • Loading branch information
kimtore committed Oct 31, 2024
1 parent 75dafea commit 322afc4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/persistence/postgres/how-to/delete-database.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,10 @@ The database is not automatically removed when deleting your NAIS application. R

!!! danger
When you delete an Cloud SQL instance, you cannot reuse the name of the deleted instance until one week from the deletion date.

To remove a database completely without deleting the application:

1. First, set [cascadingDelete](../../../workloads/application/reference/application-spec.md#gcpsqlinstancescascadingdelete) to `true` in the application spec and deploy it
2. Remove `sqlInstances` from the application spec and deploy again

The database and the instance it runs on should now be completely removed after a short while.

0 comments on commit 322afc4

Please sign in to comment.