All Products
Search
Document Center

Elastic Compute Service:Delete a secondary ENI

Last Updated:Mar 14, 2024

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 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 a secondary ENI.

    Note

    When 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

  1. Log on to the ECS console.

  2. In the left-side navigation pane, choose Network & Security > Elastic Network Interfaces.

  3. In the top navigation bar, select the region and resource group to which the resource belongs. 地域

  4. Find an ENI that is in the to be bound state and choose 更多 > Delete in the Actions column.

  5. 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.