Yandex.Cloud
  • Services
  • Why Yandex.Cloud
  • Pricing
  • Documentation
  • Contact us
Get started
Yandex Load Balancer
  • Getting started
  • Step-by-step instructions
    • All instructions
    • Load balancers
      • Create a load balancer
      • Create an internal network load balancer
      • Start a load balancer
      • Stop a load balancer
      • Delete a load balancer
      • Check target health statuses
      • Add a listener
      • Delete a listener
    • Target groups
      • Create a target group
      • Attach a target group to a load balancer
      • Detach a target group from a load balancer
      • Delete a target group
  • Concepts
    • Load balancer
    • Internal load balancer
    • Listener
    • Targets and groups
    • Resource health checks
    • Quotas and limits
  • Best practices for using the service
  • Access management
  • Pricing policy
  • API reference
    • Authentication in the API
    • gRPC
      • Overview
      • NetworkLoadBalancerService
      • TargetGroupService
      • OperationService
    • REST
      • Overview
      • NetworkLoadBalancer
        • Overview
        • addListener
        • attachTargetGroup
        • create
        • delete
        • detachTargetGroup
        • get
        • getTargetStates
        • list
        • listOperations
        • removeListener
        • start
        • stop
        • update
      • TargetGroup
        • Overview
        • addTargets
        • create
        • delete
        • get
        • list
        • listOperations
        • removeTargets
        • update
      • Operation
        • Overview
        • get
  • Questions and answers
  1. Step-by-step instructions
  2. Load balancers
  3. Delete a load balancer

Delete a network load balancer

  • Examples
    • Deleting a network load balancer from a particular folder
Management console
CLI
API
Terraform

To delete a network load balancer:

  1. Open the Load Balancer section in the folder to delete the load balancer from.
  2. Click in the row of the load balancer to delete.
  3. In the menu that opens, click Delete.
  4. In the window that opens, click Delete.

If you don't have the Yandex.Cloud command-line interface, install it.

The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name or --folder-id parameter.

  1. See the description of the CLI's delete network load balancer command:

    $ yc load-balancer network-load-balancer delete --help
    
  2. Get a list of all load balancers:

    $ yc load-balancer network-load-balancer list
    +----------------------+--------------------+-------+
    |          ID          | NAME               |  ...  |
    +----------------------+------+-------------+-------+
    ...
    | b7r97ah2jn5rmo6k1dsk | test-load-balancer |  ...  |
    ...
    +----------------------+------+-------------+-------+
    
  3. Select the identifier (ID) or name (NAME) of the load balancer you need.

  4. Delete the load balancer:

    $ yc load-balancer network-load-balancer delete b7r97ah2jn5rmo6k1dsk
    

You can delete load balancers using the delete API method.

With Terraform, you can quickly create a cloud infrastructure in Yandex.Cloud. The infrastructure components are identified through configuration files that specify the required cloud resources and their parameters.

Read more about Terraform in the documentation.

Network load balancers created using Terraform can be deleted:

  1. In the command line, go to the directory with the Terraform configuration file.

  2. Delete resources using the command:

    $ terraform destroy
    

    Alert

    Terraform deletes all the resources that you created in the current configuration, such as clusters, networks, subnets, and VMs.

  3. Confirm the deletion of resources.

Examples

Deleting a network load balancer from a particular folder

CLI

To delete a network load balancer from another folder, use the --folder-id or --folder-name flags.

$ yc load-balancer network-load-balancer delete test-load-balancer --folder-id b1gnbfd11bq5g5vnjgr4
$ yc load-balancer network-load-balancer delete test-load-balancer --folder-name test-folder
Language
Careers
Privacy policy
Terms of use
© 2021 Yandex.Cloud LLC