Yandex Cloud
Documentation
PresentationContact UsTry it for free
© 2026 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 masquerading in clusters with multiple ranges of pod IP addresses
    • Configuring autoscaling
    • Activating a Kubernetes Terraform provider
    • Installing applications from Yandex Cloud Marketplace using Terraform
    • Working with private Docker image registries
      • Information about existing node groups
      • Creating a node group
      • Creating a group with nodes from a reserved instance pool
      • Connecting to a node over SSH
      • Connecting to a node via OS Login
      • Configuring autoscaling
      • Updating a node group
      • Node maintenance with zero resource loss
      • Managing Kubernetes node labels
      • Deleting a node group
  • 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 November 2, 2026
View in Markdown

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

To access a node group, use its name or unique ID obtained using this 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. In the management console, select the folder.
  2. Navigate to Managed Service for Kubernetes.
  3. Select the Managed Service for Kubernetes cluster.
  4. Navigate to the Cluster management tab and select the Node group section.
  5. In the node group row, click and select Delete.
  6. Confirm the deletion.

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 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 on how to create such a file, see Creating a node group.

  2. Delete the section describing the 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 resource changes.

    1. Run this command to view the intended 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.

    Timeouts

    The Terraform provider sets time limits for operations with Managed Service for Kubernetes cluster node groups:

    • Creating and editing: 60 minutes.
    • Deleting: 20 minutes.

    Operations in excess of this time will be interrupted.

    How do I modify these limits?

    Add the timeouts section to the cluster node group description, e.g.:

    resource "yandex_kubernetes_node_group" "<node_group_name>" {
      ...
      timeouts {
        create = "1h30m"
        update = "1h30m"
        delete = "60m"
      }
    }
    

For more information, see this Terraform provider guide.

To delete a node group, use the delete REST API method for the NodeGroup resource or the NodeGroupService/Delete gRPC API call.

Was the article helpful?

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