Sometimes you need to re-config your local Anaconda environment, and need to uninstall Anaconda distribution completely.

Automatic Uninstallation

Step 1 Install the anaconda-clean package

1
conda install anaconda-clean

Step 2 Clean your environment

The anaconda-clean command will remove all Anaconda-related files and directories with a confirmation prompt before deleting each one. The --yes argument will help you to skip all confirmation and will remove all these files files and directories without confirmation.

1
anaconda-clean --yes

Step 3 Remove .anaconda_backup Folder

anaconda-clean creates a backup of all files and directories that under a folder named .anaconda_backup in your home directory. You can also remove this folder to fully uninstall Anaconda distribution on your machine.

Manual Uninstallation

Step 1 Remove your Anaconda directories

1
2
3
4
5
6
rm -rf anaconda3
rm -rf ~/anaconda3
rm -rf ~/opt/anaconda3
rm -rf ~/.condarc
rm -rf ~/.conda
rm -rf ~/.anaconda

Step 2 Removing Anaconda path

If you are using Linux or macOS, you may also need to check your .bash_profile or .zshrc to remove Anaconda.

1
echo $PATH

Reference