Skip to main content
Knowledge Base

I can't delete VPCs using cloud-nuke

Answer

When I try to delete a VPC using cloud-nuke I see an error ``` InvalidParameterValue: Network interface 'eni:2ad435344fe31c' is currently in use.' ``` --- <ins datetime="2023-02-07T14:35:07Z"> <p><a href="https://support.gruntwork.io/hc/requests/109877">Tracked in ticket #109877</a></p> </ins>

We believe this is a problem with eventual consistency within AWS. After removing any eni resources within the VPC it takes a significant period of time before the VPC becomes eligible for deletion. As part of Gruntwork operations we typically run cloud-nuke multiple times to ensure VPCs are destroyed. We find that retrying after 30 minutes typically resolves the issue.