Skip to main content

Command referenceconda remove

conda remove command (Linux & Windows / Conda)

Linux & WindowsCondapackagebeginnerDestructive — use carefully

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 / optionMeaning
PACKAGEPackage name(s) to uninstall.
-n, --nameEnvironment to modify.
--allRemove the entire environment.
-y, --yesSkip confirmation.
--force-removeRemove 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.

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.