remove anaconda environment code example
Example 1: conda remove environment
conda remove --name myenv --all
Example 2: delete conda from machine
conda install anaconda-clean # install the package anaconda clean
anaconda-clean --yes # clean all anaconda related files and directories
rm -rf ~/anaconda3 # removes the entire anaconda directory
rm -rf ~/.anaconda_backup # anaconda clean creates a back_up of files/dirs, remove it
# (conda list; cmd shouldn't respond after the clean up)
Example 3: how to make a conda environment
conda create --name myenv
#to activate environment:
conda activate myenv
Example 4: anaconda remove environment
conda env remove -n ENV_NAME
Example 5: delete conda environment
conda remove --name myenv --all