vix uninstall
vix uninstall removes the Vix CLI or a globally installed Vix package.
Use it when you want to remove the Vix binary from your machine, remove a global package, or purge local Vix store and cache data.
vix uninstallOverview
vix uninstall has two modes:
CLI uninstall mode
global package uninstall mode2
CLI uninstall mode removes the Vix binary:
vix uninstallGlobal package uninstall mode removes one globally installed package:
vix uninstall -g gk/jwtThe command can also remove local Vix store/cache data with:
vix uninstall --purgeUsage
vix uninstall [options]
vix uninstall -g <package>2
Basic examples
# Remove detected Vix CLI binary
vix uninstall
# Remove Vix CLI binary and local store/cache
vix uninstall --purge
# Remove every detected Vix binary
vix uninstall --all
# Include system locations such as /usr/local/bin and /usr/bin
vix uninstall --all --system
# Remove binary from a custom prefix
vix uninstall --prefix /usr/local
# Remove an explicit binary path
vix uninstall --path /usr/local/bin/vix
# Remove a globally installed package
vix uninstall -g gk/jwt2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Modes
| Mode | Command | Purpose |
|---|---|---|
| CLI mode | vix uninstall | Remove the detected Vix CLI binary. |
| CLI purge mode | vix uninstall --purge | Remove Vix CLI binary and local store/cache data. |
| Global package mode | vix uninstall -g <pkg> | Remove one globally installed package. |
CLI uninstall mode
Run:
vix uninstallVix tries to find the installed CLI binary, remove it, remove its install metadata, then print a shell cache tip.
Example output shape:
Uninstall
✔ Removed binary: /home/user/.local/bin/vix
✔ Removed install.json
ℹ You may need to run: hash -r (bash/zsh)
✔ Uninstall complete.
⚠ Tip: run: hash -r (bash/zsh) or restart your terminal.2
3
4
5
6
How Vix finds the CLI binary
Vix builds a list of candidate binary paths.
It can use:
explicit --path
install.json install_dir
VIX_CLI_PATH
command -v vix
explicit --prefix
system paths when --system or --all is used2
3
4
5
6
Then it removes the first matching binary by default.
If --all is used, it tries to remove every detected candidate.
Candidate path order
The candidate order is:
1. --path <file>
2. install.json install_dir + /vix
3. VIX_CLI_PATH
4. command -v vix
5. --prefix <dir>/bin/vix
6. system paths when --system or --all is used2
3
4
5
6
On Linux, system paths include:
/usr/local/bin/vix
/usr/bin/vix2
Explicit path uninstall
Use --path when you know the exact binary to remove.
vix uninstall --path /usr/local/bin/vixThis removes only that file.
Vix refuses to remove directories.
If the path is a directory, it reports:
refusing to remove directory: /pathPrefix uninstall
Use --prefix when Vix was installed under a custom prefix.
vix uninstall --prefix /usr/localThis targets:
/usr/local/bin/vixOn Windows, the binary name is:
vix.exeRemove all detected binaries
Use:
vix uninstall --allThis tells Vix to keep trying candidate paths instead of stopping after the first removed binary.
Use this when you have multiple Vix binaries in different locations.
Example:
vix uninstall --allInclude system locations
Use:
vix uninstall --all --systemThis includes common system locations such as:
/usr/local/bin/vix
/usr/bin/vix2
If Vix cannot remove a system binary because of permissions, it can suggest a command such as:
sudo rm -f /usr/local/bin/vixinstall.json
Vix removes install metadata when uninstalling the CLI.
On Linux, the install metadata path is:
~/.local/share/vix/install.jsonOn Windows, the install metadata path is under:
%LOCALAPPDATA%\Vix\install.jsonThis file can contain the install directory used to detect the CLI binary.
Purge local store and cache
Use:
vix uninstall --purgeThis removes the CLI binary and the local Vix store/cache.
On Linux, the store/cache root is:
~/.vixOn Windows, the store/cache root is:
%LOCALAPPDATA%\Vix\storeExample output shape:
Uninstall
✔ Removed binary: /home/user/.local/bin/vix
✔ Removed install.json
✔ Purged local store/cache
ℹ You may need to run: hash -r (bash/zsh)
✔ Uninstall complete.2
3
4
5
6
What --purge removes
--purge removes local Vix data such as:
registry index
global packages
package store
cache data
local Vix metadata2
3
4
5
On Linux, this means:
~/.vixUse --purge only when you want to remove Vix data, not just the binary.
What normal uninstall removes
Normal uninstall removes:
Vix CLI binary
install.json2
It does not remove:
~/.vix
global packages
registry index
package store/cache2
3
4
Use --purge when you want those removed too.
Shell command cache
After removing the binary, your shell may still remember the old path.
Vix prints:
hash -rRun it in Bash or Zsh:
hash -rOr restart your terminal.
This clears the shell command cache.
PATH post-check
After uninstalling, Vix checks whether vix is still found in PATH.
If it still exists, Vix warns:
Still found in PATH: /some/path/vixThat means another Vix binary still exists.
Use:
which vixor:
command -v vixThen remove the remaining binary:
vix uninstall --path /some/path/vixor:
vix uninstall --all --systemGlobal package uninstall mode
Use:
vix uninstall -g gk/jwtor:
vix uninstall --global gk/jwtThis removes one globally installed package.
It reads the global manifest:
~/.vix/global/installed.jsonThen it removes the package entry and deletes the installed package path.
Global package manifest
Global packages are recorded in:
~/.vix/global/installed.jsonThe manifest contains a packages array.
Example shape:
{
"packages": [
{
"id": "gk/jwt",
"version": "1.0.0",
"installed_path": "/home/user/.vix/global/packages/gk.jwt"
}
]
}2
3
4
5
6
7
8
9
When you run:
vix uninstall -g gk/jwtVix finds the package with:
id = gk/jwtThen it removes:
installed_pathand updates the manifest.
Global package output
Example:
✔ Removed: /home/user/.vix/global/packages/gk.jwt
✔ Uninstalled gk/jwt2
If no global manifest exists:
No global packages installed.If the package is not found:
Package not found: gk/jwtGlobal package id format
Use the package id stored in the global manifest.
Example:
gk/jwtRun:
vix list -gto inspect globally installed packages before uninstalling.
Difference between CLI uninstall and global package uninstall
| Command | Removes |
|---|---|
vix uninstall | Vix CLI binary. |
vix uninstall --purge | Vix CLI binary and local store/cache data. |
vix uninstall -g <pkg> | One globally installed package. |
Difference between vix remove and vix uninstall
| Command | Purpose |
|---|---|
vix remove <pkg> | Remove a dependency from the current project lockfile. |
vix uninstall -g <pkg> | Remove a globally installed package. |
vix uninstall | Remove the Vix CLI binary. |
Use vix remove for project dependencies.
Use vix uninstall -g for global packages.
Use vix uninstall for the CLI itself.
Full CLI uninstall workflow
Inspect current setup:
vix info
which vix
vix --version2
3
Uninstall:
vix uninstallClear shell cache:
hash -rVerify:
command -v vixIf still found:
vix uninstall --all --system
hash -r2
Full purge workflow
Use this when you want to remove Vix and local Vix data:
vix uninstall --purge
hash -r2
This removes the CLI binary, install metadata, and store/cache data.
Remove custom installation
If Vix was installed under a custom prefix:
vix uninstall --prefix /opt/vixThis targets:
/opt/vix/bin/vixIf you know the exact binary:
vix uninstall --path /opt/vix/bin/vixRemove system installation
If Vix is installed in a system path:
vix uninstall --all --systemIf permission is denied, Vix may suggest:
sudo rm -f /usr/local/bin/vixThen clear shell cache:
hash -rRemove global package
vix uninstall -g gk/jwtCheck:
vix list -gIf the package is gone, uninstall succeeded.
Options
| Option | Description |
|---|---|
-g, --global | Remove a globally installed package. |
--purge | Remove local store/cache as well. |
--all | Try to remove every detected Vix binary in candidate paths. |
--system | Include system locations such as /usr/local/bin and /usr/bin. |
--prefix <dir> | Remove <dir>/bin/vix. |
--path <file> | Remove the binary at an explicit path. |
-h, --help | Show command help. |
Commands reference
| Command | Description |
|---|---|
vix uninstall | Remove detected Vix CLI binary. |
vix uninstall --purge | Remove CLI and local store/cache. |
vix uninstall --all | Remove every detected Vix binary candidate. |
vix uninstall --all --system | Remove every detected candidate including system paths. |
vix uninstall --prefix /usr/local | Remove /usr/local/bin/vix. |
vix uninstall --path /usr/local/bin/vix | Remove explicit binary path. |
vix uninstall -g gk/jwt | Remove one global package. |
Common workflows
Remove Vix CLI
vix uninstall
hash -r2
Remove Vix CLI and cache/store
vix uninstall --purge
hash -r2
Remove every detected binary
vix uninstall --all
hash -r2
Remove system binaries too
vix uninstall --all --system
hash -r2
Remove a custom prefix install
vix uninstall --prefix /usr/local
hash -r2
Remove an explicit binary
vix uninstall --path /usr/local/bin/vix
hash -r2
Remove a global package
vix uninstall -g gk/jwtCommon mistakes
Using uninstall for project dependencies
Wrong:
vix uninstall -g gk/jwtwhen you mean the current project dependency.
Correct:
vix remove gk/jwt
vix install2
Using remove for global packages
Wrong:
vix remove gk/jwtwhen you mean a global package.
Correct:
vix uninstall -g gk/jwtUsing --purge when you only want to remove the binary
Wrong:
vix uninstall --purgeif you want to keep registry, cache, and global packages.
Correct:
vix uninstallForgetting shell cache
After uninstalling, run:
hash -ror restart your terminal.
Removing only one binary when multiple exist
If Vix says:
Still found in PATH: /some/path/vixremove the remaining binary:
vix uninstall --all --systemor:
vix uninstall --path /some/path/vixExpecting --system to work without permissions
System paths may require elevated permissions.
If Vix cannot remove the file, use the suggested sudo rm -f ... command.
Passing -g without a package
Wrong:
vix uninstall -gCorrect:
vix uninstall -g gk/jwtTroubleshooting
No candidate paths found
Vix could not detect the CLI binary.
Try:
which vix
command -v vix2
If you know the path:
vix uninstall --path /path/to/vixUninstall finished but nothing removed
This means Vix did not find a removable binary at the candidate paths.
Check:
command -v vixIf a path appears, remove it explicitly:
vix uninstall --path /that/pathStill found in PATH
Run:
command -v vixThen remove the returned path:
vix uninstall --path /returned/pathClear shell cache:
hash -rPermission denied
If the binary is in a system path, use:
sudo rm -f /usr/local/bin/vixThen:
hash -rMissing HOME or LOCALAPPDATA
Vix needs a home directory to locate install metadata and store paths.
On Linux/macOS, make sure:
echo "$HOME"is set.
On Windows, make sure:
echo $env:LOCALAPPDATAis set.
No global packages installed
If:
vix uninstall -g gk/jwtprints:
No global packages installed.then the global manifest does not exist.
There is nothing to remove globally.
Invalid global manifest
If Vix reports:
Invalid global manifest.the global install file is malformed.
Check:
~/.vix/global/installed.jsonYou may need to reinstall or manually clean the corrupted global state.
Global package not found
If Vix reports:
Package not found: gk/jwtcheck installed global packages:
vix list -gThen use the exact package id shown there.
Best practices
Run vix info before uninstalling if you are unsure where Vix is installed.
Use vix uninstall when you only want to remove the binary.
Use vix uninstall --purge only when you want to remove local Vix data too.
Use vix uninstall --all --system when multiple binaries exist.
Use --path when you know the exact binary path.
Run hash -r after uninstalling on Bash or Zsh.
Use vix uninstall -g <pkg> only for global packages.
Use vix remove <pkg> for project dependencies.
Related commands
| Command | Purpose |
|---|---|
vix upgrade | Upgrade the Vix CLI or a global package. |
vix install -g | Install a global package. |
vix list -g | List global packages. |
vix remove | Remove a project dependency. |
vix clean | Clean project-local generated state. |
vix reset | Clean and reinstall project dependencies. |
vix info | Inspect Vix paths and caches. |
vix doctor | Diagnose environment health. |
vix install | Reinstall project dependencies after project dependency changes. |
Next step
Continue with shell completion.