pixi global uninstall command removes one or more global environments from your system, including all their packages and exposed executables.
Usage
Arguments
Name(s) of the environment(s) to uninstall. Multiple environments can be specified.
Behavior
What Gets Removed
When you uninstall a global environment:- Environment directory: All packages and files are removed
- Exposed executables: Symlinks/shims in
~/.pixi/bin/are removed - Manifest entry: Environment is removed from the global manifest
- Completions: Shell completions for exposed executables are removed (Unix)
Multiple Environments
You can uninstall multiple environments in a single command:- If one fails, others continue processing
- Errors are collected and reported at the end
Error Handling
If an uninstall fails, pixi attempts to revert changes to maintain consistency.
- Changes to that environment are reverted
- Other environments continue processing
- All errors are reported at the end
Examples
Uninstall Single Environment
Uninstall Multiple Environments
Uninstall All Development Tools
Clean Up Old Environments
State Changes Reported
After successful uninstall, pixi reports:- Environment removed
- Exposed executables removed
- Completions removed (Unix)
Environment Locations
Global environments are stored at:- Unix/macOS:
~/.pixi/envs/<environment>/ - Windows:
%USERPROFILE%\.pixi\envs\<environment>\
- Unix/macOS:
~/.pixi/bin/ - Windows:
%USERPROFILE%\.pixi\bin\
Verification
Before Uninstalling
Check what will be removed:After Uninstalling
Verify removal:Common Use Cases
Remove Outdated Environment
Clean Up After Testing
Remove Conflicting Environment
Troubleshooting
Environment Not Found
Error:Environment 'xyz' not found
Solution: List available environments:
Permission Denied
Error:Permission denied when removing files
Solution: Check file permissions:
Partial Removal
If uninstall fails partway through:Multiple Environment Failures
Some environments removed successfully, others failed:Comparison with Related Commands
uninstall vs remove
pixi global uninstall: Removes entire environmentpixi global remove: Removes specific packages from an environment
Safety Features
Confirmation
No confirmation prompt is shown by default. Double-check environment names before executing.Reversion on Error
If uninstall fails, pixi attempts to restore the environment to its previous state.Multiple Environment Processing
When uninstalling multiple environments:- Each is processed independently
- Failure in one doesn’t stop others
- Errors are collected and reported together
Config Options
Disable TLS certificate verification.
Path to authentication file.
Advanced Usage
Scripting Bulk Uninstalls
Conditional Uninstall
Uninstall and Reinstall
Exit Codes
0: All environments uninstalled successfully1: One or more environments failed to uninstall
See Also
- pixi global remove - Remove packages from an environment
- pixi global install - Install a new global environment
- pixi global list - List global environments
- pixi global sync - Synchronize global environments