Deleting a Secondary VNIC
On Compute Cloud@Customer, you can delete a secondary VNIC.
This operation detaches and deletes the specified secondary VNIC.
You can't delete an instance's primary VNIC.
When you delete an instance, all attached VNICs (primary and secondary) are automatically detached and deleted.
- In the Compute Cloud@Customer Console navigation menu, click Compute, then click Instances.
- At the top of the page, select the compartment that contains the instance for which you want to delete a VNIC.
-
Click the name of the instance.
The instance details page is displayed.
-
Under Resources, click Attached VNICs.
The list of attached VNICs for that instance is displayed.
-
For the VNIC that you want to delete, click the Actions menu (
), then click Delete.
-
Click Confirm.
The VNIC state changes to Detached. After a few seconds, the VNIC is removed from the list.
-
Log onto the instance and delete the configuration for the IP address from the instance OS.
Undo the configuration you did when you added the VNIC. See Configuring the Instance OS for a Secondary IP Address.
Use the oci compute instance detach-vnic command and required parameters to detach and delete the specified secondary VNIC.
oci compute instance detach-vnic [OPTIONS]
For a complete list of CLI commands, flags, and options, see the Command Line Reference.
Use the DetachVnic operation to detach and delete the specified secondary VNIC.
For information about using the API and signing requests, see REST APIs and Security Credentials. For information about SDKs, see Software Development Kits and Command Line Interface.