Skip to main content

jnc remove

Removes dependencies from the workspace manifest and updates the lock file accordingly. Supports removing both conda and PyPI dependencies. When the workspace manifest is a pyproject.toml, removing a PyPI dependency with --pypi will remove it from either the native project.dependencies array or, if a feature is specified, from project.optional-dependencies. Alias: rm

Usage

jnc remove [OPTIONS] <DEPS>...

Arguments

ArgumentDescription
DEPSOne or more dependency names to remove.

Options

Dependency Type

OptionDescription
--pypiRemove a PyPI dependency instead of a conda dependency.

Targeting

OptionDescription
-p, --platform <PLATFORM>Remove the dependency only from specific platform(s). Can be specified multiple times.
-f, --feature <FEATURE>Remove the dependency from a specific feature (default: the default feature).

Update Options

OptionDescription
--no-installOnly modify the lock file, do not install the environment.
--frozenUse the lockfile as-is, do not update it.
--lockedRequire the lockfile to be up-to-date, abort if not.

Global Options

OptionDescription
-m, --manifest-path <PATH>Path to pixi.toml, pyproject.toml, or the workspace directory.

Examples

Remove a conda package

jnc remove numpy

Remove multiple packages

jnc remove numpy pandas scikit-learn

Remove a PyPI package

jnc remove --pypi requests

Remove a platform-specific dependency

jnc remove cudatoolkit --platform linux-aarch64

Remove a dependency from a feature

jnc remove --feature test pytest