Yandex Cloud
Documentation
PresentationContact UsTry it for free
© 2026 Direct Cursus Technology L.L.C.
Yandex Cloud Stackland
  • What's new
  • Installation
    • All tutorials
    • Installing Stackland on Yandex BareMetal
    • Installing Stackland on Yandex BareMetal via PXE
    • Installing Stackland on Yandex Cloud VMs
    • Setting up external access to a pod in a cluster
    • Verifying signatures for custom images
    • All guides
        • Creating a PostgreSQL cluster
        • Updating cluster settings
        • Creating a user
        • Updating a user
        • Deleting a user
        • Create database
        • Update database
        • Deleting a database
        • Performance diagnostics
        • Create a backup
        • Recovering a cluster
        • Deleting a cluster
    • Projects
    • Resource model
    • Scaling a cluster
    • Licensing
  • Access management
  • Pricing policy
  • Diagnostics and troubleshooting
  1. Step-by-step guides
  2. Databases and analytics
  3. Managed Service for PostgreSQL
  4. Deleting a cluster

Deleting a PostgreSQL cluster

Written by
Yandex Cloud
Updated at April 8, 2026
View in Markdown

If you have a PostgreSQL cluster in your project, you can delete it.

Warning

If the deletion protection is on (spec.deletionProtection: true), you cannot delete the cluster. First, deactivate the protection by setting spec.deletionProtection: false in the manifest and applying the changes (kubectl apply). Alternatively, deactivate it on the cluster editing page in the management console. Then you can delete the cluster.

CLI
Management console
  1. Find the name of the required cluster in the list of project clusters: kubectl get PostgresqlCluster -n <project name>.
  2. Delete the cluster resource: kubectl delete PostgresqlCluster <cluster name> -n <project name>.
  1. If you have not opened a project yet, select one.
  2. In the left-hand menu, select PostgreSQL Clusters.
  3. Select a cluster.
  4. Click Delete.
  5. Confirm the deletion.

This is it. You have successfully deleted the cluster.

Was the article helpful?

Previous
Recovering a cluster
Next
Creating a ClickHouse® cluster
© 2026 Direct Cursus Technology L.L.C.