Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • 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
© 2025 Direct Cursus Technology L.L.C.
Yandex Managed Service for Kubernetes
  • Comparing with other Yandex Cloud services
  • Getting started
    • All guides
    • Connecting to a node over SSH
    • Connecting to a node via OS Login
    • Updating Kubernetes
    • Configuring autoscaling
    • Activating a Kubernetes Terraform provider
    • Installing applications from Yandex Cloud Marketplace using Terraform
      • Getting information about a Kubernetes cluster
      • Viewing operations with a Kubernetes cluster
      • Creating a Kubernetes cluster
      • Updating a Kubernetes cluster
      • Creating a namespace in a Kubernetes cluster
      • Managing Kubernetes cluster access
      • Monitoring Kubernetes cluster state
      • Deleting a Kubernetes cluster
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  1. Step-by-step guides
  2. Managing a Kubernetes cluster
  3. Deleting a Kubernetes cluster

Deleting a Kubernetes cluster

Written by
Yandex Cloud
Updated at November 11, 2025

Alert

When deleting a Managed Service for Kubernetes cluster, Compute Cloud disks attached to PersistentVolumes are not deleted automatically.

To access a Kubernetes cluster, use its name or unique ID. You can get them by using the following command:

yc managed-kubernetes cluster list

Result:

+----------------------+----------+---------------------+---------+---------+-------------------------+-----------------------+
|          ID          |   NAME   |     CREATED AT      | HEALTH  | STATUS  |    EXTERNAL ENDPOINT    |   INTERNAL ENDPOINT   |
+----------------------+----------+---------------------+---------+---------+-------------------------+-----------------------+
| cati493bu7ia******** | k8s-demo | 2019-11-20 11:26:36 | HEALTHY | RUNNING | https://84.201.174.147/ | https://192.168.0.27/ |
+----------------------+----------+---------------------+---------+---------+-------------------------+-----------------------+
Management console
CLI
Terraform
API
  1. Open Managed Service for Kubernetes in the folder where you want to delete a Kubernetes cluster.
  2. Click in the row of the Kubernetes cluster you need to delete.
  3. In the menu that opens, click Delete.
  4. In the window that opens, click Delete.

If you do not have the Yandex Cloud CLI installed yet, install and initialize it.

  1. Delete the Kubernetes cluster:

    yc managed-kubernetes cluster delete test-k8s-cluster
    

    Result:

    done
    
  2. Make sure the Kubernetes cluster was deleted:

    yc managed-kubernetes cluster list
    

    Result:

    +----+------+------------+--------+--------+-------------------+-------------------+
    | ID | NAME | CREATED AT | HEALTH | STATUS | EXTERNAL ENDPOINT | INTERNAL ENDPOINT |
    +----+------+------------+--------+--------+-------------------+-------------------+
    +----+------+------------+--------+--------+-------------------+-------------------+
    

With Terraform, you can quickly create a cloud infrastructure in Yandex Cloud and manage it using configuration files. These files store the infrastructure description written in HashiCorp Configuration Language (HCL). If you change the configuration files, Terraform automatically detects which part of your configuration is already deployed, and what should be added or removed.

Terraform is distributed under the Business Source License. The Yandex Cloud provider for Terraform is distributed under the MPL-2.0 license.

For more information about the provider resources, see the relevant documentation on the Terraform website or its mirror.

If you do not have Terraform yet, install it and configure the Yandex Cloud provider.

To delete a cluster created using Terraform:

  1. In the command line, go to the folder that houses the current Terraform configuration file with an infrastructure plan.

  2. Delete the resources using this command:

    terraform destroy
    

    Alert

    Terraform will delete all the resources you created using it, such as clusters, networks, subnets, and VMs.

  3. Type yes and press Enter.

To delete a Kubernetes cluster, use the delete method for the Cluster resource.

Was the article helpful?

Previous
Monitoring Kubernetes cluster state
Next
Information about existing node groups
© 2025 Direct Cursus Technology L.L.C.