Python Anaconda - How to Safely Uninstall
From the docs:
To uninstall Anaconda open a terminal window and remove the entire anaconda install directory:
rm -rf ~/anaconda. You may also edit
~/.bash_profileand remove the anaconda directory from your
PATHenvironment variable, and remove the hidden
.continuumdirectories which may have been created in the home directory with
rm -rf ~/.condarc ~/.conda ~/.continuum.
- Python3 installs may use a
~/anaconda3dir instead of
- You might also have a
~/.anacondahidden directory that may be removed.
- Depending on how you installed, it is possible that the
PATHis modified in one of your runcom files, and not in your shell profile. So, for example if you are using bash, be sure to check your
~/.bashrcif you don't find the
Package "anaconda clean", available from Anaconda platform, should uninstall safely.
conda activate your_conda_env # activate your conda environmentconda install anaconda-clean # install the package anaconda cleananaconda-clean --yes # clean all anaconda related files and directories rm -rf ~/anaconda3 # removes the entire anaconda directoryrm -rf ~/.anaconda_backup # anaconda clean creates a back_up of files/dirs, remove it # (conda list; cmd shouldn't respond after the clean up)
Refer: https://docs.anaconda.com/anaconda/install/uninstall for more details.
Note: Also, you may want to edit .bashrc (or .bash_profile) & remove the conda path in $PATH environment variable for full proper clean-up