diff --git a/runtime/manual/tools/uninstall.md b/runtime/manual/tools/uninstall.md new file mode 100644 index 00000000..a1e03e25 --- /dev/null +++ b/runtime/manual/tools/uninstall.md @@ -0,0 +1,58 @@ +# deno uninstall + +Uninstalls an executable script in the installation root's bin directory. + +## Command + +`deno uninstall [OPTIONS] ` - Uninstalls `name`. + +## Synopsis + +```bash +deno uninstall [--root ] [-g|--global] [-q|--quiet] + +deno uninstall -h|--help +``` + +## Description + +When uninstalling, the installation root is determined in the following order: + +- --root option +- DENO_INSTALL_ROOT environment variable +- $HOME/.deno + +## Arguments + +`NAME` + +The name of the script to uninstall. + +## Options + +- `--root ` + Installation root + +- `-g, --global` + Remove globally installed package or module + +- `-q, --quiet` + Suppress diagnostic output + +- `-h, --help` + + Prints help information + +## Examples + +- Uninstall `serve` + +```bash +deno uninstall serve +``` + +- Uninstall `serve` from a specific installation root + +```bash +deno uninstall --root /usr/local serve +``` diff --git a/sidebars/runtime.js b/sidebars/runtime.js index b8984416..dcfaed7e 100644 --- a/sidebars/runtime.js +++ b/sidebars/runtime.js @@ -225,6 +225,11 @@ const sidebars = { label: "deno types", id: "manual/tools/types", }, + { + type: "doc", + label: "deno uninstall", + id: "manual/tools/uninstall", + }, { type: "doc", label: "deno upgrade",