The network interface can't be deleted. Reason: Network interface is currently in use.

0

Hello everyone, I have been working on a personal project and encountered a strange issue today. I am unable to clean up my resources properly. After finishing my work, I deleted EC2 instances, but I'm facing difficulty in deleting Security Groups, non-default VPCs, Subnets, and Network ACLs. Most of them indicate that I have associated network interfaces, and I've tried to delete them, but they can't be removed. I have gone through the AWS documentation to delete the interfaces using the UI, but it shows that they are still in use. I have also released elastic IPs, but to no avail. I would appreciate any help or suggestions you may have. Thank you in advance!

asked a year ago508 views
2 Answers
0

1. Log in to the AWS Management Console and navigate to the EC2 service. 2. From the EC2 console, select "Network Interfaces" from the sidebar menu. 3. Locate the network interface you want to delete and check the "Attachment Information" column to see if it's attached to an EC2 instance. 4. If the network interface is attached to an EC2 instance, select the network interface from the list, choose "Actions", and then "Detach Network Interface". 5. Before detaching the network interface, make sure to stop any processes or services running on the EC2 instance that might be using the interface. Otherwise, the detachment process will fail. 6. Once the network interface is detached, try to delete it again. If the deletion still fails, you may need to contact AWS support for further assistance.

answered a year ago
  • Thanks for your response, but the issue remains unresolved.

0

Hi,

You can also try the script in this article: https://repost.aws/knowledge-center/troubleshoot-dependency-error-delete-vpc which can help identify dependencies with the ENI.

Hope it helps ;)

profile picture
EXPERT
answered a year ago
  • Thanks for your prompt response . I tired it, but I couldn't resolve the issue.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions