Stay organized with collections
Save and categorize content based on your preferences.
After you set up a load balancer, you can delete the resources that you made so
that you aren't billed for them in the future. If these resources were created
within their own project, you can delete the entire project. Otherwise, you can
delete the resources individually.
Deleting the project
Console
In the Google Cloud console, go to the Projects page.
Select the checkbox next to your load balancer name.
At the top of the page, click deleteDelete.
Select the checkboxes next to all the additional resources, including
backend services, backend buckets, health checks, and SSL certificates.
Click Delete load balancer and the selected resources.
Deleting the Cloud Storage buckets
If you created backend buckets, deleting the load balancer and backend buckets
doesn't delete the underlying Cloud Storage buckets or the objects
contained within them.
For information about deleting Cloud Storage buckets and the objects
contained within them, see Deleting buckets.
Deleting the instance groups
If you created instance groups, delete them. Deleting the instance group
also deletes the individual VMs.
In the Google Cloud console, go to the Instance groups page.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Clean up a load balancing setup\n\nAfter you set up a load balancer, you can delete the resources that you made so\nthat you aren't billed for them in the future. If these resources were created\nwithin their own project, you can delete the entire project. Otherwise, you can\ndelete the resources individually.\n\nDeleting the project\n--------------------\n\n| **Caution** : Deleting a project has the following effects:\n|\n| - **Everything in the project is deleted.** If you used an existing project, when you delete it, you also delete any other work that you've done in the project.\n- **Custom project IDs are lost.** When you created this project, you might have created a custom project ID that you want to use in the future. To preserve the URLs that use the project ID, such as a `YOUR_PROJECT_ID.REGION_ID.r.appspot.com` URL, delete selected resources inside the project instead of deleting the project. \n\n### Console\n\n1. In the Google Cloud console, go to the **Projects** page.\n\n [Go to Projects](https://console.cloud.google.com/cloud-resource-manager)\n2. In the project list, select the project that you want to delete, and then\n click delete**Delete**.\n\n3. In the dialog, type the \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e, and then click\n **Shut down** to delete the project.\n\n### gcloud\n\nRun the following command, replacing \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e with your\nproject ID: \n\n```\ngcloud projects delete PROJECT_ID\n```\n\nDeleting individual resources\n-----------------------------\n\n### Deleting the load balancer\n\n1. In the Google Cloud console, go to the **Load balancing** page.\n\n [Go to Load balancing](https://console.cloud.google.com/networking/loadbalancing/add)\n2. Select the checkbox next to your load balancer name.\n\n3. At the top of the page, click delete**Delete**.\n\n4. Select the checkboxes next to all the additional resources, including\n backend services, backend buckets, health checks, and SSL certificates.\n\n5. Click **Delete load balancer and the selected resources**.\n\n| **Note:** If you try to delete an external passthrough Network Load Balancer with target pool backends by using a mixed TCP/UDP configuration from the Google Cloud console, you might get the following message: **This load balancer has TCP/UDP mixed configuration. Use\n| Google Cloud CLI or REST API to delete it.** You first need to remove the individual resources (forwarding rules, target proxy, URL map, health checks or target pool) by using the Google Cloud CLI or REST API depending on whatever is configured for the load balancer.\n\n### Deleting the Cloud Storage buckets\n\nIf you created backend buckets, deleting the load balancer and backend buckets\ndoesn't delete the underlying Cloud Storage buckets or the objects\ncontained within them.\n\nFor information about deleting Cloud Storage buckets and the objects\ncontained within them, see [Deleting buckets](/storage/docs/deleting-buckets).\n\n### Deleting the instance groups\n\nIf you created instance groups, delete them. Deleting the instance group\nalso deletes the individual VMs.\n\n1. In the Google Cloud console, go to the **Instance groups** page.\n\n [Go to Instance groups](https://console.cloud.google.com/compute/instanceGroups/list)\n2. To select all instance groups, select the checkbox next to **Name** , and then\n click delete**Delete**.\n\n3. In the confirmation window, click delete**Delete**.\n\n### Deleting the VM instances\n\nIf you created standalone VM instances, delete them.\n\n1. In the Google Cloud console, go to the **VM instances** page.\n\n [Go to VM instances](https://console.cloud.google.com/compute/instances)\n2. Select the checkbox next to **Name** to select all instances, and\n then click delete**Delete**.\n\n3. In the confirmation window, click delete**Delete**.\n\n### Deleting the NEGs\n\nIf you created any network endpoint groups (NEGs), delete them. Deleting a NEG\nalso deletes [network\nendpoints](/compute/docs/reference/rest/v1/networkEndpointGroups/listNetworkEndpoints)\ncontained in the NEG.\n\n1. In the Google Cloud console, go to the **Network Endpoint Groups** page.\n\n [Go to Network Endpoint Groups](https://console.cloud.google.com/compute/networkendpointgroups/list)\n2. Locate the network endpoint group that you want to delete.\n\n3. In that row, click delete**Delete**.\n\n### Releasing reserved IP addresses\n\nIf your load balancer uses one or more a reserved IP addresses, make sure you\ndelete them.\n\n1. In the Google Cloud console, go to the **External IP addresses** page.\n\n [Go to External IP addresses](https://console.cloud.google.com/addresses/list)\n2. Select the checkboxes next to your reserved IP addresses.\n\n3. Click **Release static address**.\n\n4. In the confirmation window, click delete**Delete**.\n\n### Deleting the VPC network\n\nIf you created a custom VPC network, delete it. Deleting a\nVPC network also deletes its subnetworks, routes, and firewall\nrules.\n\n1. In the Google Cloud console, go to the **VPC networks** page.\n\n [Go to VPC networks](https://console.cloud.google.com/networking/networks/list)\n2. Click your custom VPC network.\n\n3. On the network details page, click **Delete VPC network**.\n\n4. In the confirmation window, click delete**Delete**.\n\n### Deleting custom firewall rules in the default VPC network\n\nIf you created custom firewall rules in the default VPC network,\ndelete them.\n\n1. In the Google Cloud console, go to the **Firewall policies** page.\n\n [Go to Firewall policies](https://console.cloud.google.com/net-security/firewall-manager/firewall-policies/list)\n2. Select the checkboxes next to your custom firewall rules.\n\n3. Click delete**Delete**.\n\n4. In the confirmation window, click delete**Delete**."]]