Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex Cloud Stackland
  • What's new
  • Installation
    • All tutorials
    • Installing Stackland on Yandex BareMetal
    • Setting up external access to a pod in a cluster
    • All guides
        • Creating a cluster PostgreSQL
        • Updating cluster settings
        • Performance diagnostics
        • Creating backups
        • Recovering a cluster
        • Deleting a cluster
    • Projects
    • Resource model
  • Access management
  • Pricing policy
  • Diagnostics and troubleshooting
  1. Step-by-step guides
  2. Databases
  3. Managed Service for PostgreSQL
  4. Deleting a cluster

Deleting a PostgreSQL cluster

Written by
Yandex Cloud
Updated at April 8, 2026

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 cluster ClickHouse®
© 2026 Direct Cursus Technology L.L.C.