Skip to content
hero
Philippe Bordron

Delete a conda environment

How to delete an environment?

The conda env remove command is designed for that:

conda env remove -p </path/to/my/env>

Option -p can be replaced by option -n.

Alternative

Another way to delete the env is the following:

$ conda remove -p </path/to/my/env> --all

How to clean files managed by conda?

When an environment is deleted or updated, conda keeps a copy of packages in folder ~/.conda. The following command enables to clean this folder by removing unused files.

conda clean --all --yes