How to Tear Down an Existing LoadBalancer
In this example, you stop using Elastic Load Balancing on a currently load balanced EC2 fleet. You delete the LoadBalancer, which automatically deregisters the associated instances from the LoadBalancer.
API Example
To tear down an existing LoadBalancer
-
Call DeleteLoadBalancer with
LoadBalancerName
=MyLoadBalancer
.
The operation returns an empty response.
Command Line Tools Example
-
Use the elb-delete-lb command as in the following example.
PROMPT> elb-delete-lb MyLoadBalancer
Elastic Load Balancing returns the following:
Warning: Deleting a LoadBalancer can lead to service disruption to any customers connected to the LoadBalancer. Are you sure you want to delete this LoadBalancer? [Ny]
Enter Y to delete the Load Balancer
Elastic Load Balancing returns the following:
OK-Deleting LoadBalancer
Give Us Your Feedback
Your input is important to us to help make our documentation helpful and easy to use. Please take a minute to give us your feedback on how well we were able to help you use Elastic Load Balancing. Just click this feedback link. Thank you.