Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Managed Service for Kubernetes
  • Comparison 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
      • Information about existing node groups
      • Creating a node group
      • Connecting to a node over SSH
      • Connecting to a node via OS Login
      • Configuring autoscaling
      • Updating a node group
      • Managing Kubernetes node labels
      • Deleting a node group
    • Connecting external nodes to the cluster
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  1. Step-by-step guides
  2. Managing a node group
  3. Deleting a node group

Deleting a node group

Written by
Yandex Cloud
Updated at May 5, 2025

To delete a node group, use its name or ID.

To access a node group, use its name or unique ID obtained using the command:

yc managed-kubernetes node-group list

Result:

+----------------------+----------------------+-------------+----------------------+---------------------+---------+------+
|          ID          |      CLUSTER ID      |    NAME     |  INSTANCE GROUP ID   |     CREATED AT      | STATUS  | SIZE |
+----------------------+----------------------+-------------+----------------------+---------------------+---------+------+
| catt3knapbq5******** | cati493bu7ia******** | k8s-demo-ng | cl1tbm76ms7p******** | 2019-11-20 12:01:02 | RUNNING |    2 |
+----------------------+----------------------+-------------+----------------------+---------------------+---------+------+
Management console
CLI
Terraform
API

To delete a node group:

  1. Go to the Kubernetes cluster you want to delete a node group from:
    1. Open the Managed Service for Kubernetes section in the folder.
    2. Open the Kubernetes cluster you need.
    3. Go to the Node manager tab.
  2. On the Node group tab, click in the row containing the node group 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 yet, install and initialize it.

  1. Delete the node group:

    yc k8s node-group delete <node_group_name>
    

    Result:

    done
    
  2. Make sure that the node group was deleted:

    yc managed-kubernetes node-group list
    

    Result:

    +----+------------+------+-------------------+------------+--------+------+
    | ID | CLUSTER ID | NAME | INSTANCE GROUP ID | CREATED AT | STATUS | SIZE |
    +----+------------+------+-------------------+------------+--------+------+
    +----+------------+------+-------------------+------------+--------+------+
    

To delete a node group:

  1. Open the current Terraform configuration file describing the node group.

    For more information about creating this file, see Creating a node group.

  2. Delete the section describing a group you no longer need.

  3. Make sure the configuration files are correct.

    1. In the command line, navigate to the directory that contains the current Terraform configuration files defining the infrastructure.

    2. Run this command:

      terraform validate
      

      Terraform will show any errors found in your configuration files.

  4. Confirm updating the resources.

    1. Run this command to view the planned changes:

      terraform plan
      

      If you described the configuration correctly, the terminal will display a list of the resources to update and their parameters. This is a verification step that does not apply changes to your resources.

    2. If everything looks correct, apply the changes:

      1. Run this command:

        terraform apply
        
      2. Confirm updating the resources.

      3. Wait for the operation to complete.

For more information, see the Terraform provider documentation.

To delete a node group, use the delete method for the NodeGroup resource.

Was the article helpful?

Previous
Managing Kubernetes node labels
Next
Connecting external nodes to the cluster
© 2025 Direct Cursus Technology L.L.C.