Command referenceconda remove
conda remove command (Linux & Windows / Conda)
What it does
Uninstall one or more packages from a Conda environment (or remove an entire env with --all). When people look up conda uninstall package, they usually want safe flags, copyable examples, and how this Conda subcommand fits Anaconda or Miniconda workflows on Linux, Windows, and macOS. Syntax, options, and practical examples are below.
Uninstall one or more packages from a Conda environment (or remove an entire env with --all).
Syntax
conda remove [-n ENV] PACKAGE [PACKAGE ...] | conda remove -n ENV --all
Common options
| Flag / option | Meaning |
|---|---|
| PACKAGE | Package name(s) to uninstall. |
| -n, --name | Environment to modify. |
| --all | Remove the entire environment. |
| -y, --yes | Skip confirmation. |
| --force-remove | Remove a package without solving dependents (risky). |
Practical examples
Remove a package
conda remove scipy
Uninstalls SciPy from the active environment.
Several packages
conda remove pytest black
Removes multiple packages in one transaction.
Named env
conda remove -n web flask
Uninstalls Flask from web without activating it.
Delete whole env
conda remove -n scratch --all
Deletes the environment; prefer `conda env remove` for clarity.
Common mistakes
- Using `--force-remove` and leaving a broken dependency graph.
- Confusing package removal with `conda clean`, which only clears caches.
Related commands
- conda env removeDelete a Conda environment and all packages installed inside it.
- conda installInstall packages into the active or named Conda environment from configured channels.
- conda listList packages installed in the active or named Conda environment.
- conda cleanRemove unused Conda cache files, package tarballs, and temporary indices to free disk space.
- conda createCreate a new isolated Conda environment with an optional Python version and starter packages.
- conda activateActivate a named or path-based Conda environment in the current shell session.
- conda env listList all Conda environments and mark the currently active one.
- aptSearch, install, update, and remove packages on Debian-based systems.
FAQ
What does conda remove do in Conda?
Uninstall one or more packages from a Conda environment (or remove an entire env with --all).
Does conda remove work on Windows and Linux?
Yes. Conda runs on Linux, Windows, and macOS; shell activation differs slightly after `conda init`, but the CLI flags are the same.
What is a practical conda remove example?
Try `conda remove scipy` — Uninstalls SciPy from the active environment.
Is mamba the same as conda remove?
Mamba is a faster drop-in solver for many Conda workflows. Prefer `mamba` only when it is installed; otherwise use the Conda commands on this page.
Browse the full Linux and Windows command reference to search more bash, CMD, PowerShell, Conda, and GitHub CLI commands.