CmdID / aws / aws lightsail
aws lightsail delete-load-balancer
Deletes a Lightsail load balancer and all its associated SSL/TLS certificates. AWS CLI reference
1 example 1 option Its page in the AWS CLI reference
Examples
To delete a load balancer
The following delete-load-balancer example deletes the specified load balancer and any associated TLS certificates.
aws lightsail delete-load-balancer --load-balancer-name MyFirstLoadBalancerIdentify--load-balancer-nameThe name of the load balancer you want to delete.Its output, shortened
{
"operations": [
{
"id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
"resourceName": "MyFirstLoadBalancer",
"resourceType": "LoadBalancer",
"createdAt": 1569875092.125,
"location": {
"availabilityZone": "all",
"regionName": "us-west-2"
},
"isTerminal": true,
"operationType": "DeleteLoadBalancer",
"status": "Succeeded",
"statusChangedAt": 1569875092.125
},
{
"id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE22222",
"resourceName": "MySecondCertificate",
"resourceType": "LoadBalancerTlsCertificate",
"createdAt": 1569875091.938,
"location": {
"availabilityZone": "all",
"regionName": "us-west-2"
},
"isTerminal": false,
"operationType": "DeleteLoadBalancerTlsCertificate",
"status": "Started",
"statusChangedAt": 1569875091.938
},
… 16 more linesFor more information, see Delete Lightsail load balancers in the Amazon Lightsail User Guide.
Options
--load-balancer-nameThe name of the load balancer you want to delete.