# Google Cloud Delete Resources

## Introduction

During the course of our trianing we have started multiple gcloud instances and created several GCP buckets as part of the training. You can continue to work with these resources or choose to terminate them as you will incur some charges if they are kept running.

## What are we going to cover

In this chapter, we will cover the steps required to follow that will terminate your GCP assets.

## Steps to delete

### Terminating via console

* In the Google Cloud console, go to the IAM & Admin [Settings page](https://console.cloud.google.com/iam-admin/settings?walkthrough_id=resource-manager--shutdown-project).
* On the IAM & Admin Settings page, click Select a project.
* Select the project you want to delete.

![project delete](/files/Em37dp8qr4Ix4AZdqtgF)

* Click Shut down & enter the project ID, then click Shut down.
* You can recover most resources if you restore a project within the 30-day period. Some services have delays in restoring and you might need to wait some time for services to be restored.
* At the end of the 30-day period, the project and all of its resources are deleted and cannot be recovered. Until it is deleted, the project counts towards your project quota but you won't be charged.

### Terminating via gcloud

* Follow the below command to terminate the project

`gcloud projects delete PROJECT_ID`

### Additional References

* [Delete Gcloud Projects](https://cloud.google.com/sdk/gcloud/reference/projects/delete)
* [Gcloud Manage Resources](https://cloud.google.com/resource-manager/docs/creating-managing-projects#gcloud_4)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://0xcriminal.gitbook.io/about-me/cloudsec/nuking-resources-in-aws-and-google-cloud/google-cloud-delete-resources.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
