Hello. I'm having trouble deleting a VPC network. This looks similar to this post , but I can't find any answer that I can manually perform.
Operation type [delete] failed with message "The network resource 'projects/protocol-pool/global/networks/over-mainnet' is already being used by 'projects/protocol-pool/global/firewalls/aet-asianortheast1-mainnet--vpc--connector-earfw'".
I already removed every resources under this VPC network including the one showing in the error message. Also now I can't access the VPC network at all and it's stuck like the screenshot.
Thanks.
Hello @Nathanjo,
Thank you for contacting Google Cloud Community.
Please note that you might be unable to delete the VPC network because of leaked network instances and VPC Network Could not be deleted due to an existing NETWORK_INSTANCE resource associated with it. Network Instances being leaked, meaning that the network has references to deleted resources in our backend systems. These references need to be corrected or deleted to be able to delete the VPC Network.
To avoid this in future please ensure that, before you can delete a network, all resources that reference the network and its subnets must first be deleted. These resources include but are not limited to — Cloud VPN gateways, Cloud Routers, Serverless VPC Access connectors and their connected services, VPC firewall rules, and custom static routes.
If you still face any issues and observe errors such as [1] you need to contact google support as mentioned in Public document.
Thanks & Regards,
Manish Bavireddy.
[1] ERROR: (gcloud.compute.networks.delete) Could not fetch resource: - The network resource 'projects/(PROJECT_NAME)/global/networks/(NETWORK_NAME) is already being used by 'projects/(PROJECT_NAME)/global/networkInstances/(NETWORK_INSTANCE_NAME)'