Can I remove the miniconda3 library?

Yes, you can remove the library.

Why miniconda3 is in /opt/ instead of ~/miniconda3/?

I don't know why, but the miniconda3 is in the /opt/miniconda3.

You may uninstall miniconda3 with the following commands:

  1. cd /; rm -rf ~/.condarc ~/.conda ~/.continuum
  2. cd opt
  3. sudo rm -rf miniconda3
  4. Open your bash or zsh rc file to remove miniconda from your path variable.

I used zsh, so I open -e ~/.zshrc to delete the context:

# >>> conda init >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$(CONDA_REPORT_ERRORS=false '/Users/yilin/opt/anaconda3/bin/conda' shell.bash hook 2> /dev/null)"
if [ $? -eq 0 ]; then
    \eval "$__conda_setup"
else
    if [ -f "/Users/yilin/opt/anaconda3/etc/profile.d/conda.sh" ]; then
        . "/Users/yilin/opt/anaconda3/etc/profile.d/conda.sh"
        CONDA_CHANGEPS1=false conda activate base
    else
        \export PATH="/Users/yilin/opt/anaconda3/bin:$PATH"
    fi
fi
unset __conda_setup
# <<< conda init <<<
Answer from Nancy Chen on Stack Overflow
🌐
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.
People also ask

Where is Anaconda installed on a Mac?
Anaconda is typically installed in the user directory under the folder name "anaconda3". · Here’s how to find Anaconda’s installation path on your Mac: · Open Finder &gt; Applications &gt; Utilities &gt; Terminal. · Type echo $CONDA_PREFIX and press Return. · Check the output: · For single-user: /Users/your-username/anaconda3 · For system-wide: /opt/anaconda3
🌐
setapp.com
setapp.com › how-to › uninstall-anaconda-on-mac
How to uninstall Anaconda on Mac: Complete removal guide
How to check if Anaconda is installed or not?
To check if Anaconda is installed on your Mac: · Open Finder &gt; Applications &gt; Utilities &gt; Terminal. · Type conda --version and press Return. · If Anaconda is installed, you'll see the version number. · Optional: Type echo $PATH to check if Anaconda’s directory appears in the output.
🌐
setapp.com
setapp.com › how-to › uninstall-anaconda-on-mac
How to uninstall Anaconda on Mac: Complete removal guide
🌐
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 ... uninstall To uninstall Miniconda open a terminal window and remove the entire miniconda install directory: [code ]rm -rf ~/miniconda[/code]. You may also edit [code ]~/.bash_prof...
🌐
Anaconda
anaconda.com › docs › getting-started › miniconda › uninstall
Uninstalling Miniconda - Anaconda
Follow the uninstall procedure below for your operating system: ... (Optional) If you have created any environments outside your miniconda3 directory, Anaconda recommends manually deleting them to increase available disc space on your computer.
🌐
GitHub
gist.github.com › pulkitgangwar › 421a1af800c5a9c6d4a77b1c252f4565
Removing miniconda from macbook air m1 · GitHub
Removing miniconda from macbook air m1 · Raw · miniconda-removal.md · Create backup with anaconda clean · conda install anaconda-clean anaconda-clean --yes · Remove the miniconda folder · rm -rfv ~/miniconda · Remove the import from .zshrc ...
🌐
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.
Top answer
1 of 7
150

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

rm -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,

$ 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

    conda 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

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

    vi ~/.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!

    rm -rf ~/.anaconda_backup
    

Reference: Official conda documentation

Find elsewhere
🌐
Setapp
setapp.com › how-to › uninstall-anaconda-on-mac
How to uninstall Anaconda on Mac: Complete removal guide
March 6, 2026 - To remove Miniconda completely, the process you need to follow is similar to removing Anaconda. ... Go to Finder > Applications > Utilities > Terminal. Uninstall the Miniconda directory by running the command
🌐
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.
🌐
LEMP
lemp.io › how-to-uninstall-miniconda-mac-os
How To Uninstall Miniconda On A Mac – LEMP
December 4, 2022 - To uninstall Miniconda using the “conda” command, first open a terminal window and then type the following: conda install anaconda-clean anaconda-clean will remove any configuration files and folders associated with Miniconda, including the .condarc file in your home directory.
🌐
iBoysoft
iboysoft.com › home › news tips › a full guide on how to uninstall anaconda on mac
A Full Guide on How to Uninstall Anaconda on Mac
January 13, 2026 - Copy, paste, and run this command to remove the Miniconda directory from the PATH environment. ~/.bash_profile · Finally, remove hidden files from the home directory by running: rm -rf ~/.condarc ~/.conda ~/.continuum · Though Anaconda is a really useful tool, you may want to delete it from your Mac computer someday. In this article, we show you how to uninstall Anaconda on Mac through Finder and Terminal.
🌐
Resbaz
resbaz.github.io › resbook-installation › python.html
Python | ResBook Installation Directory
If you need to uninstall Miniconda for any reason, open a terminal window and remove the entire Miniconda install directory by typing: rm -rf ~/miniconda
🌐
Saturn Cloud
saturncloud.io › blog › how-to-uninstall-miniconda-on-linux-a-guide
How to Uninstall Miniconda on Linux: A Guide | Saturn Cloud Blog
August 8, 2023 - In this blog, discover a step-by-step guide for uninstalling Miniconda, the lightweight Conda package manager, from your Linux system, helping data scientists efficiently manage their software tools.
🌐
DailyMacTips
dailymactips.com › home › how to uninstall miniconda mac
How To uninstall Miniconda Mac
July 28, 2025 - To completely uninstall Miniconda on your Mac, follow this straightforward step-by-step guide. Uninstalling frees up disk space and removes any Miniconda-related configurations to prevent conflicts with other Python environments. Step 1: Quit Miniconda-Related Processes Before uninstalling, ...
🌐
Tech Grapple
techgrapple.com › home › how to deactivate or remove conda or miniconda from mac
How to Deactivate or Remove Conda or Miniconda from Mac
July 6, 2024 - Step by Step Guide how to completely Remove Or Disable or Deactivate Conda and MiniConda from macOS
🌐
Conda
docs.conda.io › projects › conda › en › latest › user-guide › install › macos.html
Installing on macOS — conda 26.3.1.dev1 documentation
Remove the entire Miniconda install directory with (this may differ depending on your installation location)