pixi global uninstall instead.
Usage
pixi g remove, pixi g rm
Arguments
Package(s) to remove from the environment.Multiple packages can be specified.
Options
The environment from which dependencies should be removed.
Examples
Remove a package from an environment
Remove multiple packages
How It Works
- Removes the package from the environment’s manifest
- Removes exposed executables that belong to the package
- Syncs the environment to reflect the changes
- Updates shortcuts if applicable
The
--environment flag is required. If you want to remove the entire environment, use pixi global uninstall instead.Use Cases
Clean Up Dependencies
Remove packages you no longer need:Remove Additional Dependencies
If you installed packages with--with, you can remove them:
What Gets Removed
- The package entry from the environment’s manifest
- Exposed executables from that package
- The package and its unique dependencies from the environment
What Doesn’t Get Removed
- Shared dependencies (used by other packages in the environment)
- The environment itself (use
pixi global uninstallfor that)
Error Handling
If the removal fails, pixi will attempt to revert the changes:Viewing Changes
After removal, you can check the environment:Complete Example
Differences from pixi global uninstall
| Feature | global remove | global uninstall |
|---|---|---|
| Scope | Removes packages | Removes environment |
Requires --environment | Yes | No |
| Keeps environment | Yes | No |
| Removes executables | Only from removed packages | All |