Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
Adding terraform destroy part of cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Gmerold committed Mar 1, 2024
1 parent 96be845 commit 56f1fca
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions docs/tutorials/mastering.md
Original file line number Diff line number Diff line change
Expand Up @@ -1705,8 +1705,19 @@ All necessary files are in the `examples/terraform/mastering` directory.

## 11. Cleaning up

Juju makes it simple to cleanly remove all the deployed applications by simply removing the model itself.
To completely remove all deployments, use the following:
Destroy Terraform deployment:

```console
terraform destroy -auto-approve
```

```{note}
Terraform does not remove anything from the working directory. If needed, please clean up
the `terraform` directory manually by removing everything except for the `main.tf`
and `terraform.tf` files.
```

Destroy Juju controller:

```bash
juju destroy-controller --destroy-all-models sdcore --destroy-storage
Expand Down

0 comments on commit 56f1fca

Please sign in to comment.