Delete a network load balancer

To delete a network load balancer:

  1. Open the Load Balancer section in the folder to delete the load balancer from.
  2. Click image 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 yet, 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. Choose the ID or NAME of the load balancer to delete.

  4. Delete the load balancer:

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

You can delete load balancers using the delete API method.

Examples

Deleting a network load balancer from a particular folder

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