Elastic Load Balancing
Developer Guide (API Version 2011-11-15)
Print this pageEmail this pageGo to the ForumsView the PDFShare this page on TwitterShare this page on FacebookBookmark this page on DeliciousSubmit this page to RedditSubmit this page to DiggDid this page help you?  Yes  No   Tell us about it...

Tearing Down an Existing Load Balancer

In this example, you stop using Elastic Load Balancing on a currently load balanced EC2 fleet. You delete the load balancer, which automatically deregisters the associated instances from the load balancer.

Using Query API

To tear down an existing load balancer

  • Call DeleteLoadBalancer with LoadBalancerName = MyLoadBalancer.

The operation returns an empty response.

Using the Command Line Interface

To tear down an existing load balancer

  • 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 load balancer. Are you sure you want to delete this load balancer? [Ny]

    Enter Y to delete the LoadBalancer

    Elastic Load Balancing returns the following:

    OK-Deleting LoadBalancer