# Uninstall CoderHelm

Source: https://docs.coderhelm.com/self-host/uninstall

Self-hosted CoderHelm is one CloudFormation stack: delete it in the AWS console, choose whether the data stays, then check nothing CoderHelm-named is left.

## Steps

1. **Your install.** Its name and region. The stack is `coderhelm-<name>`.
2. **Keep the data or not.** The stack parameter `KeepDataOnDelete` is `true` unless you changed it: deleting the stack keeps the tables, the data bucket, the KMS keys, the user pool and the secret. To delete those too, first run **Update stack** with **Replace existing template** and your release's own template, `https://coderhelm-public.s3.amazonaws.com/launch/<Version>/coderhelm.json` (the stack's **Version** output), set `KeepDataOnDelete` to `false`, submit, and check that the stack's **KeepDataOnDelete** output says `false`. Don't choose **Use current template**: on an install from v0.8.4 or v0.8.5 it reports success and keeps every old value. KMS keys are then deleted after AWS's shortest wait of 7 days.
3. **Delete the stack.** In CloudFormation, select `coderhelm-<name>` and choose **Delete**. CloudFormation removes every part in order. With `KeepDataOnDelete=false` the stack empties its buckets and deletes its tables itself, retrying while DynamoDB settles. A hybrid install releases its CoderHelm address first.
4. **Check nothing is left.** `npx -y github:CoderHelm/coderhelm-platform leftovers --stage <name> --region <region>` lists, read-only, anything still named or tagged for the install: data you kept, pieces from an earlier failed install, and the deploy role once an update ran through it. `--delete` removes them after you type the install name.

Details: [Uninstall](https://docs.coderhelm.com/self-host/uninstall-details/).

## Installs from before one-stack releases

Move it first with `coderhelm-selfhost migrate`, or remove it by name with `coderhelm-selfhost uninstall` (`--everything` for the data too).
