> ## 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 repo remove

## Usage

```bash theme={null}
anaconda repo remove [OPTIONS] <SPEC> [<SPEC> ...]
```

## Description

Removes a package or artifact from the repository. The spec must use the formal package name as it appears in the package URL. You can remove a specific file, a version (all files), or a package (all versions). By default, the command prompts for confirmation unless `--force` is used.

## Arguments

Argument

Description

`SPEC`

\*(required)\* Package spec: \<channel>\[/\<subchannel>]\[::\<package>\[/\<version>\[/\<filename>]]]. One or more specs can be provided.

## Options

Option

Default

Description

`-f, --force`

Do not prompt for confirmation

`--family <FAMILY>`

`conda`

Artifact family: `conda`, `python`, `cran`, `anaconda_project`, `anaconda_env`, `notebook`, `gra`

`-h, --help`

Show help for this command

## Examples

**Remove a specific package file**

```bash theme={null}
anaconda repo remove mychannel::mypackage/1.2.0/mypackage.tar.gz
```

**Remove a specific file without specifying the version**

```bash theme={null}
anaconda repo remove mychannel::mypackage//mypackage.tar.gz
```

**Remove all files for a version**

```bash theme={null}
anaconda repo remove mychannel::mypackage/1.2.0
```

**Remove entire package (all versions and data)**

```bash theme={null}
anaconda repo remove mychannel::mypackage
```

**Remove without confirmation prompt**

```bash theme={null}
anaconda repo remove mychannel::mypackage/1.0.0 --force
```
