> **Page index:** https://kmtest.yngvar-hey-dev.oslo.systems/llms.txt lists every page on this site, with a link to its Markdown version.
>
> **Beyond these docs:** Team Utviklerflyt's golden-path plugin for Claude Code answers golden path questions from the source code of the platform's templates, Terraform modules and workflows. [Golden path plugin for Claude Code](/set-up-your-machine/golden-path-plugin-for-claude-code/index.md) shows how to install it.

# Delete environment

If you want to delete the environment you created, follow the instructions below.

## Delete the application stack

```bash title="repo-iac/dev/myapp/"
terraform destroy
```

## Delete the infrastructure stack

Use `terraform destroy` to delete all the stacks, but also manually delete the AWS S3 bucket that
was created by the `remote_state` stack.

```bash title="repo-iac/dev/infra/"
terraform destroy
```

## Delete the remote state stack

```bash title="repo-iac/dev/remote_state/"
terraform destroy
```

## Manually delete the S3 bucket

See [Delete remote state bucket](delete-remote-state-bucket.md) to learn how to delete the S3 bucket.
