Deleting a Private IP Object
Unassign and delete a private IP object from a VNIC.
Using the CLI or API, you can also delete more than one private IP object from a single VNIC with a single command.
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.
If the private IP is the target of a route rule, deleting it from the VNIC causes the route rule to drop the traffic.
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]Optionally, use the network private-ip bulk-delete command and required parameters to multiple private IP addresses:
oci network private-ip bulk-delete —from-json file:// ... [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.
Optionally, run the BulkDeletePrivateIps operation to delete more than one private IP address from a single VNIC in a single API call.