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

# anaconda channel remove-package

## Usage

```bash theme={null}
anaconda channel remove-package <PACKAGE> --channel <CHANNEL> [OPTIONS]
```

## Description

Removes a single package file from a channel. This command targets a channel on either anaconda.com or anaconda.org, depending on the value you provide for `--channel`:

> [tab] anaconda.org
>
> The command targets anaconda.org when `--channel` is a bare name (no `/`) that corresponds to a username or organization name on anaconda.org.
>
> The `<PACKAGE>` argument is the package spec in `package/version/filename` format.
>
> ```bash theme={null}
> anaconda channel remove-package <PACKAGE>/<VERSION>/<FILENAME> --channel <OWNER>
> ```
>
> Comments
>
> Replace \<PACKAGE>/\<VERSION>/\<FILENAME> with the package spec\\
>
> Replace \<OWNER> with the anaconda.org user or organization name.

> [tab] anaconda.com
>
> The command targets an anaconda.com channel when the supplied value for `--channel` includes a `/` (for example, `namespace/channel`), or when it is a bare name that does not match an anaconda.org owner.
>
> The `<PACKAGE>` argument is the filename of a single file within the package.
>
> > [!NOTE]
> >
> > A package can contain many files. The `<PACKAGE>` argument removes one file, not the entire package. To see the removable filenames, run `anaconda channel show <CHANNEL> --files`.
>
> ```bash theme={null}
> anaconda channel remove-package <FILENAME> --channel <NAMESPACE>/<CHANNEL>
> ```
>
> Comments
>
> Replace \<FILENAME> with the package filename to remove.\\
>
> Replace \<NAMESPACE>/\<CHANNEL> with your namespace and channel name.

> [!NOTE]
>
> This command accepts only one `--channel` value per invocation.

## Arguments

Argument

Description

`<PACKAGE>`

For anaconda.com channels: the package filename to remove. For anaconda.org owners: the package spec in `package/version/filename` format.

## Options

Option

Description

`-c, --channel <CHANNEL>`

Required. Target channel in `namespace/channel` or `channel` format, or an anaconda.org owner.

`-n, --namespace <TEXT>`

Namespace the channel belongs to

`-f, --force`

Skip the confirmation prompt

`-h, --help`

Show help for this command

## Examples

**Remove a package from an anaconda.org owner**

```bash theme={null}
anaconda channel remove-package my-package/1.0.0/my-package-1.0.0.tar.bz2 --channel my-org
```

**Remove a package file from an anaconda.com channel**

```bash theme={null}
anaconda channel remove-package numpy-2.2.5-py313h51bfb38_3.conda --channel my-org/my-channel
```

**Remove without a confirmation prompt**

```bash theme={null}
anaconda channel remove-package numpy-2.2.5-py313h51bfb38_3.conda --channel my-org/my-channel --force
```

**List removable filenames before removing**

```bash theme={null}
anaconda channel show my-org/my-channel --files
```
