Skip to content

Commit

Permalink
Fix uninstall instructions
Browse files Browse the repository at this point in the history
Closes #872
  • Loading branch information
mxcl committed Nov 25, 2023
1 parent bd4e24f commit b8db25c
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,17 +182,27 @@ this flag can help in confusing situations.

We’ll provide `pkgx uninstall pkgx` at some point, for now:

```sh
pkgx deintegrate
sudo rm /usr/local/bin/pkgx
rm -rf ~/.pkgx
```

Then there are a couple platform specific cache/data directories:

### macOS

1. `rm -rf ~/.pkgx`
2. `rm -rf "${XDG_CACHE_HOME:-$HOME/Library/Caches}/pkgx"`
3. `rm -rf "${XDG_DATA_HOME:-$HOME/Library/Application Support}"/pkgx`
```sh
rm -rf "${XDG_CACHE_HOME:-$HOME/Library/Caches}/pkgx"`
rm -rf "${XDG_DATA_HOME:-$HOME/Library/Application Support}"/pkgx`
```

### Linux
### Non macOS

1. `rm -rf ~/.pkgx`
2. `rm -rf "${XDG_CACHE_HOME:-$HOME/.cache}/pkgx"`
3. `rm -rf "${XDG_DATA_HOME:-$HOME/.local/share}"/pkgx`
```sh
rm -rf "${XDG_CACHE_HOME:-$HOME/.cache}/pkgx"
rm -rf "${XDG_DATA_HOME:-$HOME/.local/share}"/pkgx
```

{% hint style="warning" %}

Expand Down

0 comments on commit b8db25c

Please sign in to comment.