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

export const GCell = ({children, className}) => <div className={`grid-table-cell ${className || ""}`} role="cell">
    {children}
  </div>;

export const GTH = ({children, className}) => <div className={`grid-table-th ${className || ""}`} role="columnheader">
    {children}
  </div>;

export const GRow = ({children}) => <div className="grid-table-row" role="row">{children}</div>;

export const GBody = ({children}) => <div className="grid-table-body" role="rowgroup">{children}</div>;

export const GHead = ({children}) => <div className="grid-table-head" role="rowgroup">{children}</div>;

export const GTable = ({children, className, cols}) => <div className={`grid-table not-prose overflow-hidden rounded-2xl ${className || ""}`} style={{
  "--grid-table-cols": cols
}} role="table">
    {children}
  </div>;

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

<GTable cols="30% 70%">
  <GHead>
    <GRow>
      <GTH>Argument</GTH>
      <GTH>Description</GTH>
    </GRow>
  </GHead>

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

## Options

<GTable cols="25% 25% 50%">
  <GHead>
    <GRow>
      <GTH>Option</GTH>
      <GTH>Default</GTH>
      <GTH>Description</GTH>
    </GRow>
  </GHead>

  <GBody>
    <GRow>
      <GCell>`-f, --force`</GCell>

      <GCell />

      <GCell>Do not prompt for confirmation</GCell>
    </GRow>

    <GRow>
      <GCell>`--family <FAMILY>`</GCell>
      <GCell>`conda`</GCell>
      <GCell>Artifact family: `conda`, `python`, `cran`, `anaconda_project`, `anaconda_env`, `notebook`, `gra`</GCell>
    </GRow>

    <GRow>
      <GCell>`-h, --help`</GCell>

      <GCell />

      <GCell>Show help for this command</GCell>
    </GRow>
  </GBody>
</GTable>

## 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
```
