Delete an Application Load Balancer - Elastic Load Balancing
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Delete an Application Load Balancer

As soon as your load balancer becomes available, you are billed for each hour or partial hour that you keep it running. When you no longer need the load balancer, you can delete it. As soon as the load balancer is deleted, you stop incurring charges for it.

You can't delete a load balancer if deletion protection is enabled. For more information, see Deletion protection.

Note that deleting a load balancer does not affect its registered targets. For example, your EC2 instances continue to run and are still registered to their target groups. To delete your target groups, see Delete a target group.

To delete a load balancer using the console
  1. If you have a DNS record for your domain that points to your load balancer, point it to a new location and wait for the DNS change to take effect before deleting your load balancer.

    Example:
    • If the record is a CNAME record with a Time To Live (TTL) of 300 seconds, wait at least 300 seconds before continuing to the next step.

    • If the record is a Route 53 Alias(A) record, wait at least 60 seconds.

    • If using Route 53, the record change takes 60 seconds to propagate to all global Route 53 name servers. Add this time to the TTL value of the record that is being updated.

  2. Open the Amazon EC2 console at https://console.amazonaws.cn/ec2/.

  3. On the navigation pane, choose Load Balancers.

  4. Select the load balancer, and then choose Actions, Delete load balancer.

  5. When prompted for confirmation, enter confirm and then choose Delete.

To delete a load balancer using the Amazon CLI

Use the delete-load-balancer command.