Skip to main content
The pixi global uninstall command removes one or more global environments from your system, including all their packages and exposed executables.

Usage

Arguments

string
required
Name(s) of the environment(s) to uninstall. Multiple environments can be specified.

Behavior

What Gets Removed

When you uninstall a global environment:
  1. Environment directory: All packages and files are removed
  2. Exposed executables: Symlinks/shims in ~/.pixi/bin/ are removed
  3. Manifest entry: Environment is removed from the global manifest
  4. Completions: Shell completions for exposed executables are removed (Unix)

Multiple Environments

You can uninstall multiple environments in a single command:
Each environment is processed independently:
  • 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.
On error:
  1. Changes to that environment are reverted
  2. Other environments continue processing
  3. All errors are reported at the end

Examples

Uninstall Single Environment

Removes the python311 environment completely. Example output:

Uninstall Multiple Environments

Removes all three 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)
Example output:

Environment Locations

Global environments are stored at:
  • Unix/macOS: ~/.pixi/envs/<environment>/
  • Windows: %USERPROFILE%\.pixi\envs\<environment>\
Exposed executables:
  • Unix/macOS: ~/.pixi/bin/
  • Windows: %USERPROFILE%\.pixi\bin\

Verification

Before Uninstalling

Check what will be removed:
Shows all environments and their exposed executables.

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:
Check error messages and retry failed ones:

uninstall vs remove

  • pixi global uninstall: Removes entire environment
  • pixi global remove: Removes specific packages from an environment

Safety Features

Uninstalling an environment is permanent and removes all packages and exposed executables.

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

boolean
Disable TLS certificate verification.
string
Path to authentication file.

Advanced Usage

Scripting Bulk Uninstalls

Conditional Uninstall

Uninstall and Reinstall

Exit Codes

  • 0: All environments uninstalled successfully
  • 1: One or more environments failed to uninstall

See Also