Step 6: Clean up your project

To avoid incurring charges to your Google Cloud account for the resources you used in this tutorial, you can either delete the project or delete the individual resources.

This page shows you how to delete the following resources:

  • Cloud Run service
  • Load balancer
  • Cloud Build trigger
  • Network endpoint group
  • Reserved IP address and DNS records
  • Git repository

Delete the Cloud Run service

  1. In the Google Cloud console, go to the Cloud Run page.

    Go to Cloud Run

  2. Select the checkbox next to gemini-streamlit-cloudrun.

  3. Click Delete.

  4. In the confirmation dialog, click Delete. This action also deletes all revisions of the service.

Delete the load balancer

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

    Go to Load balancing

  2. Select the checkbox next to gemini-streamlit-app-lb.

  3. Click Delete.

  4. Select the checkboxes for all the additional resources, including backend services and SSL certificates.

  5. Click Delete load balancer and the selected resources.

Delete the Cloud Build trigger

  1. In the Google Cloud console, go to the Triggers page.

    Go to the Triggers page

  2. In the row for your trigger, click the menu (vertical ellipsis), and then click Delete.

  3. In the confirmation dialog, click Delete.

Delete the network endpoint group

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

    Go to Network endpoint group

  2. Select the checkbox next to streamlit-app-neg.

  3. Click Delete.

  4. In the confirmation dialog, click Delete.

Delete the reserved IP address and DNS records

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

    Go to External IP addresses

  2. Select genai-app-ip.

  3. Click Release static address.

  4. Remove the DNS records that you created for the reserved IP address. You might have to contact your domain administrator to complete this step.

Delete the Git repository

Go to your Git repository and click Settings > Danger Zone > Delete this repository.