Delete Postgres ΒΆ
Deleting a Postgres irreversibly removes the database, its data and its backups.
Remove uses.postgres from all workloads that reference the database and deploy them. If the Postgres manifest is managed in Git, delete the manifest file so the next apply does not recreate the database.
Wait for any clones that depend on the database to complete. Deletion is blocked while workloads, bindings or unfinished clones still reference it.
Delete the Postgres:
bash
nais postgres delete <POSTGRES-NAME> --team <TEAM> --environment <ENVIRONMENT>The CLI asks for confirmation before deleting.
- Open your team in Nais Console and select Postgres.
- Select the database in the correct environment.
- Open Actions β Delete.
- Type
<ENVIRONMENT>/<POSTGRES-NAME>to confirm, then select Delete Postgres.
Deletion continues asynchronously. The database can remain visible until cleanup completes.