Update Sept 2023: Uninstalling Anaconda Distribution from MacOS
According to Official documentation you need to install anaconda-clean
conda install anaconda-clean
1. Run anaconda-clean
After installation run anaconda-clean
to remove all Anaconda-related files and directories. It will ask for confirmation before deleting each file
# If you want to confirm each file and directory you are deleting
anaconda-clean
Or you can delete all files without confirmation with --yes
argument
# If you don't want to be asked about each file and directory
anaconda-clean --yes
The anaconda-clean
command also creates a backup of files in the home directory in a folder named .anaconda_backup
2. Delete all Conda related folder
The following are a few examples of how you may need to delete your Anaconda folder
rm -rf anaconda3
rm -rf ~/anaconda3
rm -rf ~/opt/anaconda3
3. Remove conda from PATH variables
if you have conda path set in ~/.profile, ~/.bash_profile or ~/.bash_login
, remove it from there as well.
nano ~/.bashrc
nano ~/.profile
nano ~/.zshrc
I hope that helps.