Hi there,
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?
Thanks for your feedback.
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:
1. 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).
2. 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".
3. Delete any dependent resources and then try deleting the VPC again.
You can read this documents also: https://cloud.google.com/vpc/docs/create-modify-vpc-networks.
Regards,
Mokit
Hi Mohit,
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:
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?
@Yeswanth_Kumar Can we remote? I help you.