---
title: Destroy stack
url: /docs/iac/get-started/gcp/destroy-stack/
---
## Cleanup & destroy the stack

Our final step is to clean up all of the resources we've allocated in this tutorial.

Run the `pulumi destroy` command to delete all cloud resources in this project/stack:

<!-- chooser: os -->
<!-- option: linux -->

```bash
$ pulumi destroy
```

<!-- /option -->

<!-- option: windows -->

```powershell
> pulumi destroy
```

<!-- /option -->
<!-- /chooser -->

Just like `pulumi up`, you'll be shown a preview to ensure that you want to proceed:

```
Previewing destroy (dev):

     Type                             Name               Plan
 -   pulumi:pulumi:Stack              quickstart-dev     delete
 -   ├─ gcp:storage:BucketIAMBinding  my-bucket-binding  delete
 -   ├─ gcp:storage:BucketObject      index.html         delete
 -   └─ gcp:storage:Bucket            my-bucket          delete

Outputs:
  - url       : "http://storage.googleapis.com/my-bucket-daa12be/index.html"

Resources:
    - 4 to delete

Do you want to perform this destroy?
> yes
  no
  details
```

As with an update, we can choose `no` or `details`; select `yes` to proceed:

```
Destroying (dev):

     Type                             Name               Status
 -   pulumi:pulumi:Stack              quickstart-dev     deleted (0.31s)
 -   ├─ gcp:storage:BucketIAMBinding  my-bucket-binding  deleted (6s)
 -   ├─ gcp:storage:BucketObject      index.html         deleted (0.78s)
 -   └─ gcp:storage:Bucket            my-bucket          deleted (1s)

Outputs:
  - url       : "http://storage.googleapis.com/my-bucket-daa12be/index.html"

Resources:
    - 4 deleted

Duration: 9s
```

At this stage, your stack still exists, but all cloud resources have been deleted from it.

## Remove the stack

The final step is to remove the stack itself. Destroy keeps the stack around so that you still have the full
history of what happened to the stack. Running [`pulumi stack rm`](/docs/iac/cli/commands/pulumi_stack_rm) will
delete it entirely, including all history and state snapshots. Be careful, this step cannot be undone!

<!-- chooser: os -->
<!-- option: macos -->

```bash
$ pulumi stack rm
```

<!-- /option -->

<!-- option: windows -->

```powershell
> pulumi stack rm
```

<!-- /option -->
<!-- /chooser -->

You'll be prompted to confirm the removal. Confirm it to successfully complete this tutorial.

---
[← Previous step](/docs/iac/get-started/gcp/create-component/)
[Congratulations! →](/docs/iac/get-started/gcp/next-steps/)


