Hi,
I am unable to delete an unused VPC network. When I try to delete it, it says:
"Operation type [delete] failed with message "The network resource 'projects/REDACTED/global/networks/REDACTED' is already being used by 'projects/REDACTED/global/networkInstances/v-REDACTED-3908-41cc-b89d-ed66edb128fa"
I did tried to delete the VPC first though before trying to clean up firewall rules, and other things that might be related to it. Now after doing the clean up, I'm still unable to delete it.
It looks like your VPC network is still being referenced by a network instance, which is preventing the deletion.
Please check any network interface referring to the same VPC network.
Thanks,
Darwin Vinoth.
Linkedin
Hi @DarwinVinoth,
Here are the things that I've check for references:
I can't find any references from those. I also tried listing all the assets of the project and I can't find that resource.
What were you trying to do before you deleted it? what was the set up
Hi @ammett ,
It was the VPC used by our cloud functions to call services from our Kubernetes cluster (via Serverless VPC Connector). Our cloud functions don't use the VPC connector anymore. In addition to that, the cluster and that VPC connector has long been gone.