Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions,
see Getting Started with Amazon Web Services in China
(PDF).
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.
- Console
-
To delete a network interface
Open the Amazon EC2 console at
https://console.amazonaws.cn/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.
- Amazon CLI
-
To delete a network interface
Use the following delete-network-interface
command.
aws ec2 delete-network-interface --network-interface-id eni-1234567890abcdef0
- PowerShell
-
To delete a network interface
Use the Remove-EC2NetworkInterface
cmdlet.
Remove-EC2NetworkInterface -NetworkInterfaceId eni-1234567890abcdef0