To uninstall miniconda do the following:

brew uninstall --force miniconda

Additionally, you might have done conda init "$(basename "${SHELL}")" for your respective terminal. To reverse that what I do is write the following: code .bashrc or code .zshrc in my terminal. This will open the respective file in VSCODE and you can delete the chunk of script that activates conda environments in the respective bash or zsh terminal.

Or you can just use the following:

For Bash

conda deactivate
conda config --remove-key "auto_activate_base"
conda init bash --reverse

For zsh

conda deactivate
conda config --remove-key "auto_activate_base"
conda init zsh --reverse

Basically, all it does is delete the (base) in your respective terminal by removing the activation script of conda. So, the reverse of the command conda init "$(basename "${SHELL}")".

Answer from Brian on Stack Overflow
🌐
Anaconda
anaconda.com › docs › getting-started › miniconda › uninstall
Uninstalling Miniconda - Anaconda
Use this file to discover all available pages before exploring further.This page provides comprehensive uninstallation procedures for Miniconda for all operating systems, including options for silent removal and cleanup of associated configuration files, caches, and user data.
🌐
Dtu
pythonsupport.dtu.dk › uninstall › index.html
Uninstall Software
This guide will help you uninstall Conda from your computer. This can be useful if: You are trying to install packages with pip, but cannot import the package. You want to change to use pip. You have issues with packages. You already have the Anaconda distribution installed, but need to switch to Miniforge. You already have the Miniconda distribution installed, but need to switch to Miniforge. If you have installed Miniconda through Homebrew, run the following command line in the terminal:
🌐
Algrt
algrt.hm › 2021-08-07-re-installing-miniconda-with-brew-on-macos
Re-installing miniconda with brew on MacOS | algrt.hm
August 7, 2021 - On MacOS installing a fresh version of miniconda with brew is extremely straightforward: # Uninstall brew uninstall miniconda # Install brew install --cask miniconda # Activate -- note this is for zsh condaise () { __conda_setup="$('/usr/local/Caskroom/miniconda/base/bin/conda' 'shell.zsh' ...
🌐
GitHub
github.com › Homebrew › homebrew-cask › issues › 57162
brew cask upgrade (miniconda) deletes environments
January 8, 2019 - The presence of such files can cause warnings when running "brew doctor", which is considered to be a bug in Homebrew Cask. ==> Satisfying dependencies ==> Downloading https://repo.anaconda.com/miniconda/Miniconda3-4.5.12-MacOSX-x86_64.sh ######################################################################## 100.0% ==> Verifying SHA-256 checksum for Cask 'miniconda'. ==> Starting upgrade for Cask miniconda ==> Running uninstall process for miniconda; your password may be necessary ==> Removing files: /usr/local/miniconda3 Password: cp -p /Users/phi/Library/Caches/Homebrew/downloads/c9915b9843dbd3f4d5975e171a8c8f83e49c56518c067908df2e20253ef0b63d--Miniconda3-4.5.12-MacOSX-x86_64.sh /usr/local/Caskroom/miniconda/4.5.12/Miniconda3-4.5.12-MacOSX-x86_64.sh ==> Running installer script 'Miniconda3-4.5.12-MacOSX-x86_64.sh' PREFIX=/usr/local/miniconda3 installing: python-3.7.1-haf84260_7 ...
Author   Homebrew
🌐
Homebrew
formulae.brew.sh › cask › miniconda
Homebrew Formulae: miniconda
Minimal installer for conda · https://www.anaconda.com/docs/getting-started/miniconda/main
🌐
Quora
quora.com › How-do-I-completely-remove-Miniconda-from-a-Mac-OS-X-I-guess-its-messing-up-my-system-I-probably-did-something-wrong-during-the-first-build-install
How do I completely remove Miniconda from a Mac OS X? I guess it's messing up my system; I probably did something wrong during the first ...
Answer (1 of 2): This was the first result on Google when searching for “uninstall miniconda”. > OS X Miniconda uninstall To uninstall Miniconda open a terminal window and remove the entire miniconda install directory: [code ]rm -rf ~/miniconda[...
Find elsewhere
🌐
Stack Overflow
stackoverflow.com › questions › 73596191 › why-does-brew-uninstall-cask-miniconda-require-my-password
homebrew - why does `brew uninstall --cask miniconda` require my password? - Stack Overflow
david-dev@Davids-MBP ~ % brew uninstall --cask miniconda ==> Uninstalling Cask miniconda ==> Removing files: /Users/david-dev/homebrew/Caskroom/miniconda/base Password: david-dev is not in the sudoers file.
Top answer
1 of 7
150

In order to uninstall miniconda, simply remove the miniconda folder,

Copyrm -r ~/miniconda/

As for avoiding conflicts between different Python environments, you can use virtual environments. In particular, with Miniconda, the following workflow could be used,

Copy$ wget https://repo.continuum.io/miniconda/Miniconda3-3.7.0-Linux-x86_64.sh -O ~/miniconda.sh
$ bash miniconda
$ conda env remove --yes -n new_env    # remove the environement new_env if it exists (optional)
$ conda create --yes -n new_env pip numpy pandas scipy matplotlib scikit-learn nltk ipython-notebook seaborn python=2
$ activate new_env
$ # pip install modules if needed, run python scripts, etc
  # everything will be installed in the new_env
  # located in ~/miniconda/envs/new_env
$ deactivate
2 of 7
141

The proper way to fully uninstall conda (Anaconda / Miniconda):

  1. Remove all conda-related files and directories using the Anaconda-Clean package

    Copyconda activate your_conda_env_name
    conda install anaconda-clean
    anaconda-clean # add `--yes` to avoid being prompted to delete each one
    
  2. Remove your entire conda directory

    Copyrm -rf ~/miniconda3
    
  3. Remove the line which adds the conda path to the PATH environment variable

    Copyvi ~/.bashrc
    # -> Search for conda and delete the lines containing it
    # -> If you're not sure if the line belongs to conda, comment it instead of deleting it just to be safe
    source ~/.bashrc
    
  4. Remove the backup folder created by the the Anaconda-Clean package NOTE: Think twice before doing this, because after that you won't be able to restore anything from your old conda installation!

    Copyrm -rf ~/.anaconda_backup
    

Reference: Official conda documentation

🌐
Conda
docs.conda.io › projects › conda › en › latest › user-guide › install › macos.html
Installing on macOS — conda 26.5.3.dev35 documentation
Remove the entire Miniconda install directory with (this may differ depending on your installation location)
🌐
MacPaw
macpaw.com › how to › optimization › apps
How to uninstall Miniconda: Mac user guide
October 28, 2024 - If you’ve installed Miniconda but no longer use it, you may want to uninstall it. We’ll show you how to uninstall Miniconda on your Mac step by step.
🌐
Setapp
setapp.com › how-to › uninstall-anaconda-on-mac
How to uninstall Anaconda on Mac: Complete removal guide
March 6, 2026 - You can now go ahead and edit the .bash_profile or .zshrc file to remove Miniconda edits. Considering Anaconda is quite tricky to uninstall completely, it's important to verify that it's actually gone.
🌐
Delft Stack
delftstack.com › home › howto › python › uninstall miniconda
How to Uninstall Miniconda Completely | Delft Stack
March 11, 2025 - Run the following command to initiate the uninstallation process: ... This command installs the Anaconda-Clean package, which helps in removing all traces of Miniconda.
🌐
MacKeeper
mackeeper.com › blog › mac tutorials › how to delete anaconda from a mac
How to Uninstall Anaconda on a Mac
September 23, 2025 - Open Terminal and type in rm -rf ~/miniconda. You can then edit ~./bash_profile for complete uninstallation of Miniconda from your PATH environment variable.
🌐
GitHub
github.com › conda › conda-build › issues › 672
How to uninstall conda on mac? · Issue #672 · conda/conda-build
November 11, 2015 - Skip to content · Navigation Menu · Toggle navigation · Sign in · Appearance settings · Search or jump to · Search code, repositories, users, issues, pull requests · Search syntax tips · Sign up
Author   conda
🌐
Stackoom
stackoom.com › en › question › 4u4uq
homebrew - How to uninstall miniconda via homebrew? - STACKOOM
However, the Miniconda which was downloaded via homebrew did not work. Rather, the miniconda installer works. Thus, i would like to uninstall the miniconda that was downloaded via homebrew (to avoid any potential conflict) but have difficulties doing so (see screenshot).