delete_load_balancer

delete_load_balancer(**kwargs)

Deletes the specified load balancer.

If you are attempting to recreate a load balancer, you must reconfigure all settings. The DNS name associated with a deleted load balancer are no longer usable. The name and associated DNS record of the deleted load balancer no longer exist and traffic sent to any of its IP addresses is no longer delivered to your instances.

If the load balancer does not exist or has already been deleted, the call to DeleteLoadBalancer still succeeds.

See also: AWS API Documentation

Request Syntax

response = client.delete_load_balancer(
    LoadBalancerName='string'
)
Parameters
LoadBalancerName (string) --

[REQUIRED]

The name of the load balancer.

Return type
dict
Returns
Response Syntax
{}

Response Structure

  • (dict) --

    Contains the output of DeleteLoadBalancer.

Examples

This example deletes the specified load balancer.

response = client.delete_load_balancer(
    LoadBalancerName='my-load-balancer',
)

print(response)

Expected Output:

{
    'ResponseMetadata': {
        '...': '...',
    },
}