You can delete a secondary elastic network interface (ENI) that is no longer needed to prevent resource waste. This topic describes how to delete a secondary ENI.
Prerequisites
The secondary ENI that you want to delete is in the to be bound state.
If the secondary ENI that you want to delete is bound to an Elastic Compute Service (ECS) instance, the secondary ENI is unbound from the instance. For more information, see Unbind a secondary ENI.
Usage notes
After you enable the release with instance feature for a secondary ENI, if the secondary ENI is not unbound from the instance, the secondary ENI is deleted along with the instance when the instance is released.
If a secondary ENI is deleted, the secondary ENI is automatically removed from all security groups and all private IP addresses of the secondary ENI are automatically released.
Procedure
Log on to the ECS console.
In the left-side navigation pane, choose .
In the top navigation bar, select the region and resource group to which the resource belongs.
Find the required ENI that is in the Available state and choose
in the Actions column.In the message that appears, click OK.
On the Elastic Network Interfaces page, refresh the ENI list. If the ENI is deleted, the ENI is no longer displayed.
References
You can call the DeleteNetworkInterface operation to delete an ENI.