> ## Documentation Index
> Fetch the complete documentation index at: https://jncpkg.org/llms.txt
> Use this file to discover all available pages before exploring further.

# jnc remove

> Remove dependencies from the workspace.

# 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

```bash theme={null}
jnc remove [OPTIONS] <DEPS>...
```

## Arguments

| Argument | Description                             |
| -------- | --------------------------------------- |
| `DEPS`   | One or more dependency names to remove. |

## Options

### Dependency Type

| Option   | Description                                             |
| -------- | ------------------------------------------------------- |
| `--pypi` | Remove a PyPI dependency instead of a conda dependency. |

### Targeting

| Option                        | Description                                                                            |
| ----------------------------- | -------------------------------------------------------------------------------------- |
| `-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

| Option         | Description                                                |
| -------------- | ---------------------------------------------------------- |
| `--no-install` | Only modify the lock file, do not install the environment. |
| `--frozen`     | Use the lockfile as-is, do not update it.                  |
| `--locked`     | Require the lockfile to be up-to-date, abort if not.       |

### Global Options

| Option                         | Description                                                       |
| ------------------------------ | ----------------------------------------------------------------- |
| `-m`, `--manifest-path <PATH>` | Path to `jnc.toml`, `pyproject.toml`, or the workspace directory. |

## Examples

### Remove a conda package

```bash theme={null}
jnc remove numpy
```

### Remove multiple packages

```bash theme={null}
jnc remove numpy pandas scikit-learn
```

### Remove a PyPI package

```bash theme={null}
jnc remove --pypi requests
```

### Remove a platform-specific dependency

```bash theme={null}
jnc remove cudatoolkit --platform linux-aarch64
```

### Remove a dependency from a feature

```bash theme={null}
jnc remove --feature test pytest
```
