i have deleted all the resources associated with the vpc still getting below error.
Hi @ifra_thabassum ,
To delete the VPC network, you will need to delete the router that is using it first.
If you are still having trouble deleting the VPC network, make sure that you have deleted all other resources that are associated with it, such as subnets, firewall rules, and VPN gateways. You can check for any remaining resources by running the following command in the Cloud Shell:
gcloud compute firewall-rules list --filter="network:myvpc-1"
gcloud compute routes list --filter="network:myvpc-1"
gcloud compute addresses list --filter="network:myvpc-1"
gcloud compute forwarding-rules list --filter="network:myvpc-1"
gcloud compute global-forwarding-rules list --filter="network:myvpc-1"
gcloud compute target-http-proxies list --filter="network:myvpc-1"
gcloud compute target-https-proxies list --filter="network:myvpc-1"
gcloud compute target-ssl-proxies list --filter="network:myvpc-1"
gcloud compute url-maps list --filter="network:myvpc-1"
gcloud compute global-operations list --filter="network:myvpc-1"
Replace myvpc-1
with the name of your VPC network. If any of these commands return results, you will need to delete the corresponding resources before you can delete the VPC network. Let me know if this helps.