Skip to content

Commit

Permalink
add docs for uninstall (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisjofrank committed May 1, 2024
1 parent e262af2 commit 1238de7
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
58 changes: 58 additions & 0 deletions 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] <NAME>` - Uninstalls `name`.

## Synopsis

```bash
deno uninstall [--root <root>] [-g|--global] [-q|--quiet] <NAME>

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 <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
```
5 changes: 5 additions & 0 deletions sidebars/runtime.js
Expand Up @@ -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",
Expand Down

0 comments on commit 1238de7

Please sign in to comment.