vix uninstall
vix uninstall removes parts of the local Vix environment.
It can remove the Vix CLI, remove globally installed packages, and, starting with Vix.cpp v2.7.1, remove SDK profiles installed with vix upgrade --sdk.
vix uninstallUse this command when a machine needs a clean Vix setup, when an SDK profile is no longer needed, or when a global package should be removed from the local Vix registry store.
What it removes
vix uninstall has three main modes.
vix uninstall remove the Vix CLI
vix uninstall --sdk web remove an SDK profile
vix uninstall -g gk/jwt remove a globally installed packageThe default mode removes the CLI. SDK mode is selected with --sdk. Global package mode is selected with -g or --global.
SDK profile removal is available from v2.7.1.
Remove the CLI
Run vix uninstall without a mode flag to remove the Vix CLI from the detected install location.
vix uninstallThe command checks known candidate paths, removes the first matching CLI binary, removes install metadata, and prints a short hint to refresh the shell command cache.
hash -rRestart the terminal if the shell still sees the old vix command after removal.
Preview before removing
Use --dry-run when you want to see what would be removed without changing the filesystem.
vix uninstall --dry-runThis is the safest command to run before removing the CLI, an SDK profile, or a global package.
vix uninstall --sdk web --dry-run
vix uninstall -g gk/jwt --dry-runJSON output
Use --json when the command is called from scripts or automation.
vix uninstall --dry-run --jsonFor SDK removal:
vix uninstall --sdk web --jsonFor global packages:
vix uninstall -g gk/jwt --jsonJSON output reports the target kind, removed paths, dry-run state, and errors in a machine-readable format.
Verbose output
Use --verbose when you need more detail about what the uninstall command is checking.
vix uninstall --verboseThis is useful when the command cannot find the expected binary, when a path is not writable, or when the CLI was installed in a non-standard location.
Remove all detected CLI paths
By default, vix uninstall stops after removing the first detected CLI binary.
Use --all when you want it to try every detected CLI path.
vix uninstall --allThis is useful when the machine has more than one vix binary in different locations.
Include system paths
Use --system to include common system locations such as /usr/local/bin and /usr/bin.
vix uninstall --all --systemOn Unix systems, system locations may require elevated permissions. When a system path cannot be removed, the command prints the path so it can be removed manually with the correct permissions.
Remove from a specific path
Use --path when you know the exact binary to remove.
vix uninstall --path /home/user/.local/bin/vixUse --prefix when Vix was installed under a known prefix.
vix uninstall --prefix /home/user/.localThis removes:
/home/user/.local/bin/vixThese options are useful for custom installs and CI images.
Purge local Vix data
Use --purge when you want to remove the local Vix data directory after removing the CLI.
vix uninstall --purgeThis removes the local Vix store under:
~/.vixUse this carefully. The local store can contain SDK profiles, registry cache, global packages, and other Vix-managed local data.
Preview first:
vix uninstall --purge --dry-runRemove an SDK profile
SDK profile removal is available starting with Vix.cpp v2.7.1.
Use --sdk with a profile name.
vix uninstall --sdk webThis removes the selected SDK profile directory from the local Vix SDK store.
~/.vix/sdk/webThe supported SDK profile names are:
default
web
data
desktop
p2p
game
agent
allThe all profile is a profile name. Removing it removes the installed all SDK profile.
vix uninstall --sdk allThis is different from --sdk-all, which removes all known SDK profiles.
Remove one SDK version
Use --version when you only want to remove one installed version from a profile.
vix uninstall --sdk web --version v2.7.0When the removed version is also the current version for that profile, the command also removes the profile’s current metadata and current pointer.
This is useful when a machine keeps several SDK versions and only one old version should be removed.
Remove multiple SDK profiles
You can pass multiple SDK profiles after --sdk.
vix uninstall --sdk web data desktopComma-separated profiles are also accepted.
vix uninstall --sdk web,data,desktopUse this when one machine has several SDK profiles installed and only some of them should be removed.
List installed SDK profiles
Use --sdk-list to see the SDK profiles installed on the machine.
vix uninstall --sdk-listJSON output is also available.
vix uninstall --sdk-list --jsonThe list shows each installed profile, its current version when metadata is available, and its local path.
Remove all SDK profiles
Use --sdk-all to remove all known SDK profiles.
vix uninstall --sdk-allPreview first:
vix uninstall --sdk-all --dry-runThis removes the known SDK profile directories under ~/.vix/sdk.
It is not the same as:
vix uninstall --sdk all--sdk all removes the all profile. --sdk-all removes all known SDK profiles.
Remove a global package
Use -g or --global to remove a globally installed package.
vix uninstall -g gk/jwtThe long form is also accepted.
vix uninstall --global gk/jwtThe package must exist in the global package manifest. The command removes the installed package files and updates the global manifest.
If the package is not found, the command reports that it is not installed globally.
Global package paths
Global package installs are tracked under the local Vix global store.
~/.vix/global
~/.vix/global/installed.jsonThe uninstall command uses this manifest to find the installed package path. This keeps global package removal tied to the Vix registry workflow instead of guessing paths manually.
Common workflows
Remove the CLI:
vix uninstall
hash -rPreview CLI removal:
vix uninstall --dry-runRemove the CLI and local Vix data:
vix uninstall --purgeRemove an SDK profile:
vix uninstall --sdk webRemove one SDK version:
vix uninstall --sdk web --version v2.7.0List installed SDK profiles:
vix uninstall --sdk-listRemove all SDK profiles:
vix uninstall --sdk-allRemove a global package:
vix uninstall -g gk/jwtUse JSON output:
vix uninstall --sdk web --jsonCommon mistakes
Expecting SDK uninstall before v2.7.1
SDK profile removal is available from v2.7.1.
vix uninstall --sdk webOn older versions, upgrade the CLI first.
vix upgradeThen run the SDK uninstall command again.
Confusing --sdk all and --sdk-all
This removes the all SDK profile:
vix uninstall --sdk allThis removes all known SDK profiles:
vix uninstall --sdk-allUse --dry-run when the difference matters.
vix uninstall --sdk-all --dry-runRemoving the CLI when you only wanted to remove an SDK
This removes the CLI:
vix uninstallThis removes an SDK profile:
vix uninstall --sdk webAlways include --sdk when the target is an SDK profile.
Using --purge too early
--purge removes the local Vix data directory after removing the CLI.
vix uninstall --purgeThis is useful for a clean reset, but it is stronger than removing one SDK profile or one global package. Use a targeted command when only one part should be removed.
vix uninstall --sdk web
vix uninstall -g gk/jwtForgetting to refresh the shell
After removing the CLI, some shells may still cache the old command path.
hash -rRestart the terminal if the shell still finds vix.
Removing from a system path without permissions
If Vix was installed in /usr/local/bin or another system path, the uninstall command may not have permission to remove it.
Use --dry-run first:
vix uninstall --all --system --dry-runThen remove the path with the correct permissions if needed.
Troubleshooting
vix is still found after uninstall
Check where the shell is finding it.
command -v vixThen remove that path explicitly.
vix uninstall --path /path/to/vixIf the CLI is already removed and only the old shell cache remains, refresh the shell.
hash -rSDK profile is not found
List installed SDK profiles.
vix uninstall --sdk-listThen remove the profile name shown by the list.
vix uninstall --sdk webUnsupported SDK profile
Use one of the supported profile names.
default
web
data
desktop
p2p
game
agent
allFor all profiles, use:
vix uninstall --sdk-allGlobal package is not found
The global package must exist in the Vix global manifest.
Check the package name used during global install, then remove that exact package id.
vix uninstall -g gk/jwtNeed machine-readable output
Add --json.
vix uninstall --sdk-list --json
vix uninstall --sdk web --json
vix uninstall -g gk/jwt --jsonCommand summary
vix uninstall
vix uninstall --dry-run
vix uninstall --json
vix uninstall --verbose
vix uninstall --purge
vix uninstall --all
vix uninstall --all --system
vix uninstall --prefix /path/to/prefix
vix uninstall --path /path/to/vix
vix uninstall --sdk default
vix uninstall --sdk web
vix uninstall --sdk web --version v2.7.0
vix uninstall --sdk web data desktop
vix uninstall --sdk web,data,desktop
vix uninstall --sdk-list
vix uninstall --sdk-all
vix uninstall -g gk/jwt
vix uninstall --global gk/jwtOptions
| Option | Meaning |
|---|---|
--purge | Remove ~/.vix after removing the CLI |
--all | Try every detected CLI path instead of stopping after the first removal |
--system | Include common system locations such as /usr/local/bin and /usr/bin |
--prefix <dir> | Remove <dir>/bin/vix |
--path <file> | Remove a specific Vix binary |
--sdk <profile> | Remove one SDK profile |
--sdk-list | List installed SDK profiles |
--sdk-all | Remove all known SDK profiles |
--version <tag> | Remove one SDK version from the selected profile |
-g, --global <pkg> | Remove a globally installed package |
--dry-run | Print what would be removed without changing the filesystem |
--json | Print machine-readable output |
--verbose | Print debug information |
-h, --help | Show command help |
Next step
Use vix upgrade when you need to reinstall the CLI, reinstall an SDK profile, or move the local Vix environment to a newer release.