Deleting a Private IP Object

Unassign and delete a private IP object from a VNIC.

Prerequisite: We recommend removing the IP address from the OS configuration before deleting it from the VNIC. See Configuring Linux to Use a Secondary Private IP Address or Configuring Windows to Use a Secondary IP Addresses.
Caution

If the private IP is the target of a route rule, deleting it from the VNIC causes the route rule to drop the traffic.
    1. Open the navigation menu  and select Compute. Under Compute, select Instances.
    2. Select the name of the instance to open its details page.
    3. On the Networking tab, go to the Attached VNICs section and select the VNIC that you're interested in.
    4. Select the IP administration tab.
      The IP addresses associated with the VNIC are listed in tabular form.
    5. Find the IP object you want to update, select its Actions menu (three dots), and then select Unassign Private IP.
    6. Confirm when prompted.
  • Use the private-ip delete command and required parameters to delete a private IP address:

    oci network private-ip delete --private-ip-id IP_address_OCID ... [OPTIONS]

    For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

  • Run the DeletePrivateIp operation to delete a private IP address.