Deleting a Private IP Address

Delete a private IP address 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. Under Resources, select Attached VNICs.
    4. Select the VNIC that you're interested in.
    5. Under Resources, select IPv4 Addresses.
      The VNIC's associated IP addresses are listed in tabular form.
    6. Find the IP address you want to update, select the Actions menu (Actions Menu), and then select Delete Private IP.
    7. 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.