Delete a network interface
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.
To delete a network interface using the console
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/
. -
In the navigation pane, choose Network Interfaces.
-
Select the checkbox for the network interface, and then choose Actions, Delete.
-
When prompted for confirmation, choose Delete.
To delete a network interface using the command line
You can use one of the following commands. For more information about these command line interfaces, see Access Amazon EC2.
-
delete-network-interface (AWS CLI)
-
Remove-EC2NetworkInterface (AWS Tools for Windows PowerShell)