# DeleteListener

## 1. API Description

This API is used to delete a load balance listener.

## 2. Input Parameters

The following request parameter list only provides API request parameters.

<table><thead><tr><th width="173.9609375">Parameter Name</th><th width="113.95703125">Required</th><th width="94.3671875">Type</th><th>Description</th></tr></thead><tbody><tr><td>loadBalancerId</td><td>Yes</td><td>String</td><td>Load balance instance ID.</td></tr><tr><td>listenerId</td><td>Yes</td><td>String</td><td>Listener ID.</td></tr></tbody></table>

## 3. Output Parameters

<table><thead><tr><th width="163.78125">Parameter Name</th><th width="98.60546875">Type</th><th>Description</th></tr></thead><tbody><tr><td>requestId</td><td>String</td><td>The unique request ID, which is returned for each request. RequestId is required to locate a problem.</td></tr></tbody></table>

## 4. Code Example

{% tabs %}
{% tab title="Example" %}
**Delete a listener.**

```json
POST /api/v2/zlb HTTP/1.1
Host: console.zenlayer.com
Content-Type: application/json
X-ZC-Action: DeleteListener
<Common Request Params>

Request：
{
  "loadBalancerId" : "<loadBalancerId>",
  "listenerId" : "<listenerId>"
}

Response：
{
  "requestId": "T05992D0C-7E8B-4047-B0C0-780F2CD549D3",
  "response": {
    "requestId": "T05992D0C-7E8B-4047-B0C0-780F2CD549D3"
  }
}
```

{% endtab %}
{% endtabs %}

## 5. Developer Resources

Zenlayer Cloud API 2.0 [SDKs](https://docs.console.zenlayer.com/test/ci-develop-en/api-introduction/software-toolkit/sdk/introduction) to make it easier for you to call APIs. More programming languages will be supported.

## 6. Error Codes

The following only lists the error codes related to the API business logic. For other error codes, see [Common Error Codes](https://docs.console.zenlayer.com/test/ci-develop-en/api-introduction/instruction/commonerrorcode).

<table><thead><tr><th width="171.1796875">HTTP Status Code</th><th width="325.8828125">Error code</th><th>Description</th></tr></thead><tbody><tr><td>404</td><td>INVALID_LB_LISTENER_NOT_FOUND</td><td>The listener does not exist.</td></tr></tbody></table>
