Deleting a Load Balancer

You can delete a load balancer that you no longer need at any time. Deleting a load balancer does not modify the state of its back-end instances.

Deleting a Load Balancer Using Cockpit

Before you begin: Ensure the security groups of your back-end instances allow flows coming from another source than the load balancer.

  1. Click Services > Load Balancers.

  2. Click the load balancer you want to delete.
    The load balancer is selected.

  3. Click Delete .
    A confirmation dialog box appears.

  4. Click Delete to validate.
    The load balancer is deleted and no longer appears on the Load Balancers page.

Deleting a Load Balancer Using AWS CLI

Before you begin: Ensure the security groups of your back-end instances allow flows coming from another source than the load balancer.

To delete a load balancer, use the delete-load-balancer command following this syntax:

Request sample
$ aws elb delete-load-balancer \
    --profile YOUR_PROFILE \
   --load-balancer-name My-load-balancer \
    --endpoint https://lbu.eu-west-2.outscale.com

This command contains the following attributes that you need to specify:

  • (optional) profile: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI.

  • load-balancer-name: The name of the load balancer.

  • endpoint: The endpoint corresponding to the Region you want to send the request to.

The specified load balancer is deleted.

Related Page

Corresponding API Method

AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.