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
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Application Load Balancer
  • Getting started
    • All guides
    • Creating Application Load Balancer infrastructure through a wizard
      • Creating an L7 load balancer
      • Editing an L7 load balancer
      • Getting information about an L7 load balancer
      • Viewing L7 load balancer statistics
      • Viewing L7 load balancer logs
      • Setting up L7 load balancer logging
      • Getting log group ID of an L7 load balancer
      • Stopping and starting an L7 load balancer
      • Moving a VM to a target group in a new availability zone
      • Deleting an L7 load balancer
    • Viewing operations with resources
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • L7 load balancer logs
  • Release notes
  1. Step-by-step guides
  2. L7 load balancers
  3. Deleting an L7 load balancer

Deleting an L7 load balancer

Written by
Yandex Cloud
Updated at May 5, 2025

To delete an L7 load balancer:

Management console
CLI
Terraform
API
  1. In the management console, select the folder with your load balancer.

  2. Select Application Load Balancer.

  3. Click next to the load balancer you want to delete, then select Delete.

    To delete many load balancers at once, select them in the list and click Delete at the bottom of the screen.

  4. In the window that opens, click Delete.

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

The folder specified when creating the CLI profile is used by default. To change the default folder, use the yc config set folder-id <folder_ID> command. You can specify a different folder using the --folder-name or --folder-id parameter.

  1. See the description of the CLI command for deleting a load balancer:

    yc alb load-balancer delete --help
    
  2. Run this command:

    yc alb load-balancer delete <load_balancer_name_or_ID>
    

    Result:

    done (1m10s)
    

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

To delete an L7 load balancer created with Terraform:

  1. Open the Terraform configuration file and delete the part describing the L7 load balancer.

    Sample L7 load balancer description in the Terraform configuration
    ...
    resource "yandex_alb_load_balancer" "test-balancer" {
      name        = "<load_balancer_name>"
      network_id  = yandex_vpc_network.test-network.id
    
      allocation_policy {
        location {
          zone_id   = "ru-central1-a"
          subnet_id = yandex_vpc_subnet.test-subnet.id
        }
      }
    
      listener {
        name = "<listener_name>"
        endpoint {
          address {
            external_ipv4_address {
            }
          }
          ports = [ 9000 ]
        }
        http {
          handler {
            http_router_id = yandex_alb_http_router.test-router.id
          }
        }
      }
    }
    ...
    
  2. In the command line, navigate to the directory with the Terraform configuration file.

  3. Check the configuration using this command:

    terraform validate
    

    If the configuration is correct, you will get this message:

    Success! The configuration is valid.
    
  4. Run this command:

    terraform plan
    

    You will see a detailed list of resources. No changes will be made at this step. If your configuration contains errors, Terraform will show them.

  5. Apply the changes:

    terraform apply
    
  6. Type yes and press Enter to confirm changes.

    You can check updates in the management console or using this CLI command:

    yc alb load-balancer list
    

Use the delete REST API method for the LoadBalancer resource or the LoadBalancerService/Delete gRPC API call.

Was the article helpful?

Previous
Moving a VM to a target group in a new availability zone
Next
Viewing operations with resources
Yandex project
© 2025 Yandex.Cloud LLC