How to Delete an Environment in Conda

Retreive a list of existing Conda environments using the command below

conda env list

Before an environment can be deleted, it should first be deactivated using the command below

conda deactivate

Finally delete the environment using the command below. ENV_NAME is name of the environment which is to be deleted.

conda remove --name ENV_NAME --all

The --all flag is used for removing all packages installed in that environment.

Leave A Comment

Your email address will not be published.