Clean up a load balancing setup

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.

Delete the project

Console

  1. In the Cloud de Confiance console, go to the Manage resources page.

    Go to Manage resources

  2. In the project list, select the project that you want to delete, and then click Delete.

  3. In the dialog, type the PROJECT_ID, and then click Shut down to delete the project.

gcloud

Run the following command, replacing PROJECT_ID with your project ID:

gcloud projects delete PROJECT_ID

Delete individual resources

If you don't want to delete the entire project, you can delete the individual resources that you created for your load balancer setup.

Delete the load balancer

  1. In the Cloud de Confiance console, go to the Load balancing page.

    Go to Load balancing

  2. Select the checkbox next to your load balancer name.

  3. Click Delete.

  4. Select the checkboxes next to all the additional resources, including backend services, backend buckets, health checks, and SSL certificates.

  5. Click Delete.

Delete the instance groups

If you created instance groups, delete them. Deleting the instance group also deletes the individual VMs.

  1. In the Cloud de Confiance console, go to the Instance groups page.

    Go to Instance groups

  2. To select all instance groups, select the checkbox next to Name, and then click Delete.

  3. In the confirmation window, click Delete.

Delete the VM instances

If you created standalone VM instances, delete them.

  1. In the Cloud de Confiance console, go to the VM instances page.

    Go to VM instances

  2. Select the checkbox next to Name to select all instances, and then click Delete.

  3. In the confirmation window, click Delete.

Delete the NEGs

If you created any network endpoint groups (NEGs), delete them. Deleting a NEG also deletes network endpoints contained in the NEG.

  1. In the Cloud de Confiance console, go to the Network endpoint group page.

    Go to Network endpoint group

  2. Locate the network endpoint group that you want to delete.

  3. In that row, click Delete.

Release reserved IP addresses

If your load balancer uses one or more reserved IP addresses, make sure you delete them.

  1. In the Cloud de Confiance console, go to the External IP addresses page.

    Go to External IP addresses

  2. Select the checkboxes next to your reserved IP addresses.

  3. Click Release static address.

  4. In the confirmation window, click Delete.

Delete the VPC network

If you created a custom VPC network, delete it. Deleting a VPC network also deletes its subnetworks, routes, and firewall rules.

  1. In the Cloud de Confiance console, go to the VPC networks page.

    Go to VPC networks

  2. Click your custom VPC network.

  3. On the network details page, click Delete VPC network.

  4. In the confirmation window, click Delete.

Delete custom firewall rules in the default VPC network

If you created custom firewall rules in the default VPC network, delete them.

  1. In the Cloud de Confiance console, go to the Firewall policies page.

    Go to Firewall policies

  2. Select the checkboxes next to your custom firewall rules.

  3. Click Delete.

  4. In the confirmation window, click Delete.