跳至內容

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!

已提問 4 年前檢視次數 9503 次

2 個答案
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.

已回答 4 年前

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 ;)

專家

已回答 4 年前

  • Thanks for your prompt response . I tired it, but I couldn't resolve the issue.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。