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 Available state.
If the ENI that you want to delete was bound to an Elastic Compute Service (ECS) instance, the ENI is unbound from the instance. For more information, see Unbind an ENI.
NoteWhen an instance is released, the ENIs that are bound to the instance are deleted.
Precaution
If a secondary ENI is deleted, the ENI is automatically removed from all of its security groups and all private IP addresses of the ENI are automatically released.
Procedure
Delete a secondary ENI in the ECS console
Log on to the ECS console.
In the left-side navigation pane, choose .
In the upper-left corner of the top navigation bar, select a region.
Find an ENI that is in the Available state and choose
in the Actions column.In the message that appears, click OK.
On the Network Interfaces page, refresh the ENI list. If the ENI is deleted, it is no longer displayed.
Delete a secondary ENI by calling API operations
Configure the NetworkInterfaceId
parameter for the DeleteNetworkInterface operation and then call the operation to delete an ENI.