From 7080f29fa63b65af75906837c76a922ac0c95efd Mon Sep 17 00:00:00 2001 From: "Calvin A. Allen" Date: Sat, 7 Nov 2026 11:24:55 -0500 Subject: [PATCH 1/2] feat(worker): redirect uninstall scripts to the latest release --- website/worker.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/website/worker.ts b/website/worker.ts index be6e377..ffecab7 100644 --- a/website/worker.ts +++ b/website/worker.ts @@ -1,6 +1,8 @@ const REDIRECTS: Record = { '/install.ps1': 'https://github.com/CodingWithCalvin/dtvem.cli/releases/latest/download/install.ps1', '/install.sh': 'https://github.com/CodingWithCalvin/dtvem.cli/releases/latest/download/install.sh', + '/uninstall.ps1': 'https://github.com/CodingWithCalvin/dtvem.cli/releases/latest/download/uninstall.ps1', + '/uninstall.sh': 'https://github.com/CodingWithCalvin/dtvem.cli/releases/latest/download/uninstall.sh', }; export default { From 20b2a3cf5db265b7838621c9c848280504c704b5 Mon Sep 17 00:00:00 2001 From: "Calvin A. Allen" Date: Sat, 7 Nov 2026 11:24:58 -0500 Subject: [PATCH 2/2] docs(install): document the uninstall scripts --- .../docs/user-guide/getting-started.md | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/website/src/content/docs/user-guide/getting-started.md b/website/src/content/docs/user-guide/getting-started.md index 55be368..8fce9fa 100644 --- a/website/src/content/docs/user-guide/getting-started.md +++ b/website/src/content/docs/user-guide/getting-started.md @@ -76,6 +76,40 @@ curl -fsSL dtvem.io/install.sh | bash Alternatively, you can place the binaries in any directory and manually add it to the **beginning** of your system PATH before running `dtvem init`. +## Uninstalling + +**Windows (PowerShell):** +```powershell +irm dtvem.io/uninstall.ps1 | iex +``` + +**macOS / Linux:** +```bash +curl -fsSL dtvem.io/uninstall.sh | bash +``` + +The uninstaller lists everything it will remove and asks before removing anything. To skip the prompt: + +**Windows (PowerShell):** +```powershell +iex "& { $(irm dtvem.io/uninstall.ps1) } -Yes" +``` + +**macOS / Linux:** +```bash +curl -fsSL dtvem.io/uninstall.sh | bash -s -- --yes +``` + +### What Gets Removed + +- **The dtvem directory** — the dtvem binaries, shims, config, and every runtime version installed with dtvem, along with their global packages. This covers the default location, `$XDG_DATA_HOME/dtvem`, and a custom `DTVEM_ROOT`. +- **PATH changes** made by the installer and `dtvem init`: + - **macOS / Linux:** the blocks marked `# Added by dtvem` in your shell config files + - **Windows:** the dtvem entries in the User and System PATH. Windows asks for administrator rights (UAC) when the System PATH needs editing. +- **Ruby leftovers (Windows only)** — older dtvem versions installed Ruby with RubyInstaller, which registered Programs and Features entries, Start menu folders, and `.rb`/`.rbw` file associations. These are removed too. + +> **Note:** Version files in your projects (`.dtvem/runtimes.json`, `.tool-versions`, `.nvmrc`, `.python-version`, `.ruby-version`) are left alone. +
## Verify Installation