From 500bd15fb5474ca9d2a6451c2fa00ba225533145 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Wed, 13 Sep 2023 16:07:43 -0500 Subject: [PATCH] add uninstall instructions (#5311) it's always good to have uninstall instructions as well as install, and I couldn't find them anywhere else on the site. IMO, this gives users a little more confidence to try new tools out, as they know it's easily reversible. I'm not familiar with how to uninstall with Docker, so would appreciate some help there. We could possibly add a note for "bash" on how to remove Bun from the `$PATH`. --- docs/installation.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/docs/installation.md b/docs/installation.md index ad6e31c8f4..df4d12ceab 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -149,3 +149,27 @@ To write the completions to a custom location: $ bun completions > path-to-file # write to file $ bun completions /path/to/directory # write into directory ``` + +## Uninstall + +If you need to remove Bun from your system, use the following commands. + +{% codetabs %} + +```bash#macOS/Linux_(curl) +$ rm -rf ~/.bun # for macOS, Linux, and WSL +``` + +```bash#NPM +$ npm uninstall -g bun +``` + +```bash#Homebrew +$ brew uninstall bun +``` + +```bash#Proto +$ proto uninstall bun +``` + +{% /codetabs %}