[Yandex Cloud documentation](../../index.md) > [Yandex Application Load Balancer](../index.md) > [Step-by-step guides](index.md) > L7 load balancers > Deleting an L7 load balancer

# Deleting an L7 load balancer

To delete an L7 load balancer:

{% list tabs group=instructions %}

- Management console {#console}

  1. In the [management console](https://console.yandex.cloud), select the folder the load balancer is in.
  1. Navigate to **Application Load Balancer**.
  1. Click ![image](../../_assets/console-icons/ellipsis.svg) next to the load balancer and select **Delete**.

     For multiple load balancers, select them in the list and click **Delete** at the bottom of the screen.
  1. In the window that opens, click **Delete**.

- CLI {#cli}

  If you do not have the Yandex Cloud CLI yet, [install and initialize it](../../cli/quickstart.md#install).

  The folder used by default is the one specified when [creating](../../cli/operations/profile/profile-create.md) the CLI profile. To change the default folder, use the `yc config set folder-id <folder_ID>` command. You can also specify a different folder for any command using `--folder-name` or `--folder-id`. If you access a resource by its name, the search will be limited to the default folder. If you access a resource by its ID, the search will be global, i.e., through all folders based on access permissions.

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

     ```bash
     yc alb load-balancer delete --help
     ```

  1. Run this command:

     ```bash
     yc alb load-balancer delete <load_balancer_name_or_ID>
     ```

     Result:

     ```text
     done (1m10s)
     ```

- Terraform {#tf}

  If you do not have Terraform yet, [install it and configure the Yandex Cloud provider](../../tutorials/infrastructure-management/terraform-quickstart.md#install-terraform).
  
  
  To manage infrastructure using Terraform under a service account or user accounts (a Yandex account, a federated account, or a local user), [authenticate](../../terraform/authentication.md) using the appropriate method.

  To delete an L7 load balancer created with Terraform:
  1. Open the Terraform configuration file and delete the part describing the L7 load balancer.

     {% cut "Sample L7 load balancer description in the Terraform configuration" %}

     ```hcl
     ...
     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
           }
         }
       }
     }
     ...
     ```

     {% endcut %}

  1. In the command line, navigate to the directory with the Terraform configuration file.
  1. Check the configuration using this command:

     ```bash
     terraform validate
     ```

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

     ```bash
     Success! The configuration is valid.
     ```

  1. Run this command:

     ```bash
     terraform plan
     ```

     You will see a list of resources and their properties. No changes will be made at this step. Terraform will show any errors in the configuration.
  1. Apply the configuration changes:

     ```bash
     terraform apply
     ```

  1. Type `yes` and press **Enter** to confirm changes.

     You can check updates in the [management console](https://console.yandex.cloud) or using this [CLI](../../cli/quickstart.md) command:

     ```bash
     yc alb load-balancer list
     ```

  {% note warning "Timeouts" %}
  
  The Terraform provider limits operations with Application Load Balancer load balancers to 10 minutes.
  
  Operations in excess of this time will be interrupted.
  
  {% cut "How do I modify these limits?" %}
  
  Add the `timeouts` section to the load balancer description, e.g.:
  
  ```hcl
  resource "yandex_alb_load_balancer" "<load_balancer_name>" {
    ...
    timeouts {
      create = "60m"
      update = "60m"
      delete = "60m"
    }
  }
  ```
  
  {% endcut %}
  
  {% endnote %}

- API {#api}

  Use the [delete](../api-ref/LoadBalancer/delete.md) REST API method for the [LoadBalancer](../api-ref/LoadBalancer/index.md) resource or the [LoadBalancerService/Delete](../api-ref/grpc/LoadBalancer/delete.md) gRPC API call.

{% endlist %}