Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Delete a network interface

Focus mode
Delete a network interface - Amazon Elastic Compute Cloud

Deleting a network interface releases all attributes associated with the interface and releases any private IP addresses or Elastic IP addresses to be used by another instance.

You can't delete a network interface that is in use. First, you must detach the network interface.

Console
To delete a network interface
  1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.

  2. In the navigation pane, choose Network Interfaces.

  3. Select the checkbox for the network interface, and then choose Actions, Delete.

  4. When prompted for confirmation, choose Delete.

AWS CLI

Use the following delete-network-interface command.

aws ec2 delete-network-interface --network-interface-id eni-1234567890abcdef0
PowerShell

Use the following Remove-EC2NetworkInterface cmdlet.

Remove-EC2NetworkInterface -NetworkInterfaceId eni-1234567890abcdef0
To delete a network interface
  1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.

  2. In the navigation pane, choose Network Interfaces.

  3. Select the checkbox for the network interface, and then choose Actions, Delete.

  4. When prompted for confirmation, choose Delete.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.