Help Center> Virtual Private Cloud> User Guide> Virtual IP Address> Releasing a Virtual IP Address
Updated on 2024-04-30 GMT+08:00

Releasing a Virtual IP Address

Scenarios

If you no longer need a virtual IP address or a reserved virtual IP address, you can release it to avoid wasting resources.

Notes and Constraints

If you want to release a virtual IP address that is being used by a resource, refer to Table 1.
Table 1 Releasing a virtual IP address that is being used by a resource

Prompts

Cause Analysis and Solution

Scenario 1: Virtual IP address cannot be released:

This virtual IP address is bound to a resource. Unbind the virtual IP address first.

This virtual IP address is being used by cloud resources such as an EIP or an ECS.

Unbind the virtual IP address from the cloud resources first.

Release the virtual IP address.

Scenario 2: Virtual IP address cannot be released:

This operation cannot be performed because the IP address is being used by a system component.

The virtual IP address is being used by an instance. Delete the instance, which will also release the virtual IP address.

Search for the instance based on the instance information displayed on the virtual IP address console and delete the instance.

Figure 1 Scenario 1: Virtual IP address cannot be released
Figure 2 Scenario 2: Virtual IP address cannot be released

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select the desired region and project.
  3. Click in the upper left corner and choose Networking > Virtual Private Cloud.

    The Virtual Private Cloud page is displayed.

  4. In the navigation pane on the left, choose Virtual Private Cloud > Subnets.
  5. Click the name of the subnet that the virtual IP address belongs to.
  6. Click the IP Addresses tab, locate the row that contains the virtual IP address to be released, click More in the Operation column, and select Release.

    A confirmation dialog box is displayed.

  7. Confirm the information and click Yes.