Release EIP
Updated at:2025-10-16
- The release of a specified EIP cannot be recovered once it is released
- If an EIP is bound to any instance, it must be unbound before release
- For prepaid EIPs requiring early release, please use the prepaid EIP unsubscription API
Request structure
Plain Text
1DELETE /v{version}/eip/{eip}?clientToken={clientToken} HTTP/1.1
2Host: eip.bj.baidubce.com
3Authorization: authorization string
Request headers
No special headers beyond common headers.
Request parameters
| Parameter name | Types | Whether required | Parameter location | Description |
|---|---|---|---|---|
| version | String | Yes | URL parameter | API version number, current value is 1. |
| eip | String | Yes | URL parameter | Released EIPs, including both IPv4 and IPv6 types. |
| releaseToRecycle | Boolean | No | Query | "true" indicates that the EIP will be moved to the bucket trash; "false" indicates that the EIP will be directly released |
| clientToken | String | Yes | Query | Idempotence token; for details, refer to [Idempotence](EIP/API Reference/General Description.md#Idempotence) |
There are some restrictions on moving EIPs to the bucket trash. For details, refer to [Selective Release of EIP](EIP/API Reference/EIP Related Interfaces/Selective release of EIP.md).
Response Status Code
Respond with 200 after successful operation, and respond with error codes after failed operation, as shown in [Error Codes](EIP/API Reference/Error code.md).
Response headers
No special headers beyond common headers.
Response parameters
There are no special response parameters
Request example: Directly delete the IPv4 EIP
Plain Text
1DELETE /v1/eip/180.76.122.3?clientToken=be31b98c-5e41-4838-9830-9be700de5a20 HTTP/1.1
2HOST eip.bj.baidubce.com
3Authorization bce-auth-v1/5e5a8adf11ae475ba95f1bd38228b44f/2016-04-10T08:26:52Z/1800/host;x-bce-date/ec3c0069f9abb1e247773a62707224124b2b31b4c171133677f9042969791f02
Request example: Move an IPv4 EIP to the bucket trash
Plain Text
1DELETE /v1/eip/180.76.122.3?releaseToRecycle=true&clientToken=b06998c6-7bef-452b-bac7-5618caf49e7a HTTP/1.1
2HOST eip.bj.baidubce.com
3Authorization bce-auth-v1/1c4b69c7d15a11eea64f39e9a1cc9d04/2024-02-22T08:12:24Z/3600/host;x-bce-accesskey;x-bce-account;x-bce-client-ip;x-bce-date;x-bce-gateway-count;x-bce-request-id;x-bce-user-agent/921f2c0b1146af5d4215ee4af0ec1615eb941d1c4597385cd858f27d0a6ec075
Request example: Directly delete the IPv6 EIP
Plain Text
1DELETE /v1/eip/240c:4082:ffff:ff01:0:4:0:30a?clientToken=8992d9a6-42ea-4ff8-bdc0-8f7a02ebda93 HTTP/1.1
2HOST eip.bj.baidubce.com
3Authorization bce-auth-v1/5e5a8adf11ae475ba95f1bd38228b44f/2016-04-10T08:26:52Z/1800/host;x-bce-date/ec3c0069f9abb1e247773a62707224124b2b31b4c171133677f9042969791f02
Response example
Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 946002ee-cb4f-4aad-b686-5be55df27f09
3Date: Wed, 10 Apr 2016 08:26:52 GMT
4Transfer-Encoding: chunked
5Content-Type: application/json;charset=UTF-8
6Server: BWS
