Skip to main content

Delete Load Balancer

DELETE/v2/lbaas/loadbalancers/{loadbalancer_id}

Deletes the load balancer together with its listeners and pools. The VIP port is removed, so a floating IP associated with it must be moved or released separately.

Request​

Parameters​

loadbalancer_idstringrequiredpath

The ID of the load balancer.

cascadebooleanquery

Delete the load balancer and all of its children. Default behaviour already removes listeners and pools.

Sample Request​

curl -ks -X DELETE -H 'Content-Type: application/json' -H 'X-Auth-Token: gAAAAA<...>' \
https://api.vietnix.cloud:9888/v2/lbaas/loadbalancers/{loadbalancer_id}

Response​

Status Code​

Success​

Status CodeDescription
202 - AcceptedThe delete was accepted and is being processed.
204 - No ContentThe load balancer was deleted.

Error​

Status CodeDescription
401 - UnauthorizedUser must authenticate before making a request.
403 - ForbiddenPolicy does not allow current user to do this operation.
404 - Not FoundThe load balancer does not exist.
409 - ConflictThe load balancer is in a transient status, for example PENDING_UPDATE.
note

Deleting a load balancer takes a moment. Poll GET /v2/lbaas/loadbalancers/{loadbalancer_id} until it returns 404 before you reuse the VIP address.