Deletes a pay-as-you-go Server Load Balancer (SLB) instance.

Note After you delete an SLB instance, the listeners and tags added to the SLB instance are deleted.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DeleteLoadBalancer

The operation that you want to perform.

Set the value to DeleteLoadBalancer.

LoadBalancerId String Yes lb-bp1h66tp5uat8********

The ID of the SLB instance.

RegionId String Yes cn-hangzhou

The ID of the region where the SLB instance is created.

You can call the DescribeRegions operation to query region IDs.

Response parameters

Parameter Type Example Description
RequestId String CEF72CEB-54B6-4AE8-B225-F876FF7BA984

The ID of the request.

If the SLB instance that you want to delete has deletion protection enabled, the system reports an error in the following formats:

  • JSON format
    	"RequestId": "7B7AB375-1EA6-4A18-9D1C-F258F2D57638",
    	"HostId": "",
    	"Code": "OperationDenied.DeleteProtectionIsOn",
    	"Message": "The loadbalancer can't be deleted due to DeleteProtection is enabled."
  • XML format
       <?xml version="1.0" encoding="UTF-8" ?>
    	<Message>The loadbalancer can't be deleted due to DeleteProtection is enabled.</Message>


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format

    "RequestId": "0D9B7343-AC1F-498C-A18A-78FE14A7C3A3"

Error codes

For a list of error codes, visit the API Error Center.