Right now, I’m facing an issue with the delete default VPC network.
I’ve removed every services connected to this VPC and an error is displayed when I try to reach my action:
Operation type [delete] failed with message "The network resource ‘projects/c-dev/global/networks/default’ is already being used by 'projects/c-dev/global/networkInstances/v1099102027-dadf1198-7cd5-424a-b573-d4fe759cb588
Could you please help me on deleting this default vpc from project?
Hi, @Yeswanth_Kumar . The error indicated that the default VPC is still in use by a network interface (most possibly from a Compute Engine VM), a managed service (like GKE or Cloud SQL), or even a reserved IP. You can follow the below steps in your scenarios:
List all resources using the default VPC: gcloud compute instances list --filter=“networkInterfaces.network:default”. Then delete any listed instances or reassign them to a different VPC (if applicable).
Check for other dependencies: gcloud compute networks subnets list --network=default, gcloud compute forwarding-rules list --filter=“network=default”, gcloud compute routes list --filter=“network=default”, gcloud compute routers list --filter=“network=default”.
Delete any dependent resources and then try deleting the VPC again.
I wanted to update you — I tried all the suggested checks to identify any resources using the default VPC. Below are the exact steps I ran:
gcloud compute routers list --filter=“network=default” # No routers
gcloud compute instances list --filter=“networkInterfaces.network:default” # No instances gcloud compute networks subnets list --network=default # No subnets
gcloud compute forwarding-rules list --filter=“network=default” # No forwarding rules gcloud compute routes list --filter=“network=default” # No custom routes gcloud compute addresses list --filter=“networkTier=PREMIUM” # Checked reserved IPs (none using default) gcloud container clusters list # No GKE clusters
gcloud sql instances list # All using private IPs from custom VPC gcloud compute networks peerings list # Verified peerings use custom VPC gcloud compute service-attachments list --filter=“network=default” # No service attachments
After verifying all of this, I’m still unable to delete the default VPC — it shows an error that it’s still in use, but no resources appear attached.
Could you please advise what else to check or how to find any hidden dependency?