Deleting network interface ID's?

0

How to delete network interfaces? I am facing issues in deleting network interface ID's since it is connecting to vpc subnet and route table they are also unable to delete

Anusha
asked 8 months ago171 views
2 Answers
0

Hi Anusha,

This generally happens when there is an association of ENI with existing resource. You can either first delete the associated resources or detach the association from the ENI and then delete.

Here is the re:Post Knowledge Center Article, which has step by step guide, how to delete ENI.

Please follow the steps, you should be able to delete the ENI.

Additionally take a look at this re:Post thread, this may also help you where similar discussion happened.

Here is the command reference:

  aws ec2 delete-network-interface --network-interface-id <eni-name>

  aws ec2 describe-network-interfaces --filters 'Name=vpc-id,Values='$vpc | grep NetworkInterfaceId

Second command would provide you the resources with which this ENI is attached.

Additional Reference:

Hope you find this helpful.

Comment here if you have additional questions, happy to help.

Abhishek

profile pictureAWS
EXPERT
answered 8 months ago
  • Were you able to delete the ENI. Do you have any additional questions, feel free to comment.

0

Specifically, Which kind of ENI you trying to detach/remove from VPC? its totally depend on what kind of service/resources behind this ENI. for example if its related with some 3rd party SaaS like service you should first contact those 3rd party organization before rid of this.

V
answered 8 months ago

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