Deleting a PostgreSQL cluster
Before deleting a cluster
-
Disable deletion protection for the cluster if it is enabled.
-
The cluster ID is required to restore a deleted cluster from a backup.
After you delete a database cluster, its backups are kept for 7 days for recovery purposes.
Deleting a cluster
Management console
CLI
- Open the folder page in the management console.
- Select Managed Service for PostgreSQL.
- Click the
If you don't have the Nebius AI command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name
or --folder-id
parameter.
To delete a cluster, run the command:
ncp managed-postgresql cluster delete <cluster name or ID>
You can query the cluster ID and name with a list of clusters in the folder.