Deleting the database
The database is not automatically removed when deleting your Nais application.
Remove unused databases to avoid incurring unnecessary costs.
This is done by setting allowDeletion in your nais.yaml
-specification.
To remove a database completely without deleting the application:
- First, set allowDeletion to
true
in the application spec and deploy it - Remove
postgres
from the application spec and deploy again
The database and the instance it runs on should now be completely removed after a short while.