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 virtual machines (VMs).
Deleting a Load Balancer Using Cockpit v2
Before you begin: Ensure the security groups of your back-end VMs allow flows coming from another source than the load balancer. |
The DNS name will be deleted. |
-
Click inside the Load Balancers dashboard to make checkboxes appear.
-
Check the box of the load balancer you want to delete.
Multiselection is available.
The load balancer is selected and an action menu appears.
-
Click
Delete.
A confirmation dialog box appears. -
In the confirmation dialog box, type "DELETE" in the text field and click Delete.
The load balancer is deleted.
Deleting a Load Balancer Using Cockpit v1
Cockpit v1 is no longer fixed nor supported. For more information, see End-of-Life Policy. |
Before you begin: Ensure the security groups of your back-end instances allow flows coming from another source than the load balancer. |
-
Click Services > Load Balancers.
-
Click the load balancer you want to delete.
The load balancer is selected. -
Click Delete .
A confirmation dialog box appears. -
Click Delete to validate.
The load balancer is deleted and no longer appears on the Load Balancers page.
Deleting a Load Balancer Using OSC CLI
Before you begin: Ensure the security groups of your back-end VMs allow flows coming from another source than the load balancer. |
The DeleteLoadBalancer command deletes a specified load balancer.
$ osc-cli api DeleteLoadBalancer --profile "default" \
--LoadBalancerName "example-lbu"
This command contains the following attributes that you need to specify:
-
DryRun
: (optional) If true, checks whether you have the required permissions to perform the action. -
LoadBalancerName
: The name of the load balancer you want to delete.
The DeleteLoadBalancer command returns the following elements:
-
ResponseContext
: Information about the context of the response.-
RequestId
: The ID of the request.
-
{
"ResponseContext": {
"RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
}
}
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:
$ 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 Methods
AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.