Skip to content

Delete environment

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

Delete the application stack

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.

repo-iac/dev/infra/
terraform destroy

Delete the remote state stack

repo-iac/dev/remote_state/
terraform destroy

Manually delete the S3 bucket

Go to the guides document to learn how to delete the S3 bucket.