Skip to content

Commit b8db25c

Browse files
committed
Fix uninstall instructions
Closes #872
1 parent bd4e24f commit b8db25c

1 file changed

Lines changed: 17 additions & 7 deletions

File tree

‎docs/faq.md‎

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -182,17 +182,27 @@ this flag can help in confusing situations.
182182

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

185+
```sh
186+
pkgx deintegrate
187+
sudo rm /usr/local/bin/pkgx
188+
rm -rf ~/.pkgx
189+
```
190+
191+
Then there are a couple platform specific cache/data directories:
192+
185193
### macOS
186194

187-
1. `rm -rf ~/.pkgx`
188-
2. `rm -rf "${XDG_CACHE_HOME:-$HOME/Library/Caches}/pkgx"`
189-
3. `rm -rf "${XDG_DATA_HOME:-$HOME/Library/Application Support}"/pkgx`
195+
```sh
196+
rm -rf "${XDG_CACHE_HOME:-$HOME/Library/Caches}/pkgx"`
197+
rm -rf "${XDG_DATA_HOME:-$HOME/Library/Application Support}"/pkgx`
198+
```
190199

191-
### Linux
200+
### Non macOS
192201

193-
1. `rm -rf ~/.pkgx`
194-
2. `rm -rf "${XDG_CACHE_HOME:-$HOME/.cache}/pkgx"`
195-
3. `rm -rf "${XDG_DATA_HOME:-$HOME/.local/share}"/pkgx`
202+
```sh
203+
rm -rf "${XDG_CACHE_HOME:-$HOME/.cache}/pkgx"
204+
rm -rf "${XDG_DATA_HOME:-$HOME/.local/share}"/pkgx
205+
```
196206

197207
{% hint style="warning" %}
198208

0 commit comments

Comments
 (0)