If an elastic network interface (ENI) is no longer needed, you can delete it. This topic describes how to delete an ENI. Secondary ENIs can be deleted, whereas primary ENIs cannot.

Prerequisites

  • The ENI that you want to delete is in the Available state.
  • If the ENI is bound to an instance, you must unbind the ENI from the instance before you can delete the ENI. For more information, see Unbind an ENI.

Background information

When an ENI is deleted, the following results occur:
  • The primary private IP address (PrimaryIpAddress) of the ENI is automatically released.
  • The ENI is removed from all security groups to which it was added.

When an instance is released, the ENIs bound to it are deleted.

Procedure

  1. Log on to the ECS console.
  2. In the left-side navigation pane, choose Network & Security > ENIs.
  3. In the top navigation bar, select a region.
  4. Find an ENI that is in the Available state and click Delete in the Actions column.
  5. In the message that appears, click OK.

Result

On the Network Interfaces page, refresh the ENI list. If the ENI is deleted, it is no longer displayed.