Back to Article List

How to uninstall Miniconda on Linux, macOS and Windows

How to uninstall Miniconda on Linux, macOS and Windows - How to uninstall Miniconda on Linux, macOS and Windows

Most top-ranking answers for how to uninstall Miniconda say rm -rf ~/miniconda3 and stop there. That advice is older than conda init, and following it leaves a dead initialization block in your shell config, three hidden directories in your home folder and, on some setups, a shell that complains on every new terminal. The complete removal is barely longer. Here it is per OS, current for the 26.x installers, including uninstaller options that have only existed since late 2024.

Export your environments before uninstalling

Uninstalling destroys every environment you've created, all of them living inside the install directory. Any that took real effort to assemble should be exported first:

conda env export -n myproject > myproject.yml

Repeat per env (conda env list shows what exists) and park the files somewhere outside the Miniconda tree; each one rebuilds its environment later with conda env create -f, on this machine or another. A side thought before you commit: when the reason for uninstalling is just that the install feels old and crusty, rerunning a newer installer with -u over the same prefix fixes that without deleting anything, and the guide on how to update Miniconda covers when that's the better move.

Your idea deserves better hosting

24/7 support 30-day money-back guaranteeRefund covers the VPS plan on your first order. Cancel anytime
Billing Cycle

VPS.S1

$5.99 Save  17 %
$4.99 Monthly
  • 2 vCPU AMD EPYC
  • 2 GB RAMMEMORY
  • 30 GB NVMeSTORAGE
  • Unmetered bandwidth
  • IPv4 & IPv6IPv6 is currently unavailable in France, Finland or the Netherlands. included

VPS.S3

$14.99 Save  33 %
$9.99 Monthly
  • 4 vCPU AMD EPYC
  • 6 GB RAMMEMORY
  • 70 GB NVMeSTORAGE
  • Unmetered bandwidth
  • IPv4 & IPv6IPv6 is currently unavailable in France, Finland or the Netherlands. included

VPS.S4

$19.99 Save  20 %
$15.99 Monthly
  • 6 vCPU AMD EPYC
  • 8 GB RAMMEMORY
  • 80 GB NVMeSTORAGE
  • Unmetered bandwidth
  • IPv4 & IPv6IPv6 is currently unavailable in France, Finland or the Netherlands. included

EPYC VPS.P1

$8.99 Save  22 %
$6.99 Monthly
  • 2 vCPU AMD EPYC
  • 4 GB RAMMEMORY
  • 40 GB NVMeSTORAGE
  • Unmetered bandwidth
  • IPv4 & IPv6IPv6 is currently unavailable in France, Finland or the Netherlands. included
  • Free auto backupsIncludes one backup slot you can set to run daily, weekly or monthly.

EPYC VPS.P2

$16.99 Save  24 %
$12.99 Monthly
  • 2 vCPU AMD EPYC
  • 8 GB RAMMEMORY
  • 80 GB NVMeSTORAGE
  • Unmetered bandwidth
  • IPv4 & IPv6IPv6 is currently unavailable in France, Finland or the Netherlands. included
  • Free auto backupsIncludes one backup slot you can set to run daily, weekly or monthly.

EPYC VPS.P4

$29.99 Save  23 %
$22.99 Monthly
  • 4 vCPU AMD EPYC
  • 16 GB RAMMEMORY
  • 160 GB NVMeSTORAGE
  • Unmetered bandwidth
  • IPv4 & IPv6IPv6 is currently unavailable in France, Finland or the Netherlands. included
  • Free auto backupsIncludes one backup slot you can set to run daily, weekly or monthly.

EPYC VPS.P5

$39.99 Save  25 %
$29.99 Monthly
  • 8 vCPU AMD EPYC
  • 16 GB RAMMEMORY
  • 180 GB NVMeSTORAGE
  • Unmetered bandwidth
  • IPv4 & IPv6IPv6 is currently unavailable in France, Finland or the Netherlands. included
  • Free auto backupsIncludes one backup slot you can set to run daily, weekly or monthly.

EPYC VPS.P6

$59.99 Save  25 %
$44.99 Monthly
  • 8 vCPU AMD EPYC
  • 32 GB RAMMEMORY
  • 200 GB NVMeSTORAGE
  • Unmetered bandwidth
  • IPv4 & IPv6IPv6 is currently unavailable in France, Finland or the Netherlands. included
  • Free auto backupsIncludes one backup slot you can set to run daily, weekly or monthly.

EPYC VPS.P7

$69.99 Save  29 %
$49.99 Monthly
  • 16 vCPU AMD EPYC
  • 32 GB RAMMEMORY
  • 240 GB NVMeSTORAGE
  • Unmetered bandwidth
  • IPv4 & IPv6IPv6 is currently unavailable in France, Finland or the Netherlands. included
  • Free auto backupsIncludes one backup slot you can set to run daily, weekly or monthly.

Genoa VPS.G2

$24.99 Save  20 %
$19.99 Monthly
  • 2 vCPUAMD EPYC Genoa 4th generation 9xx4 with 3.25 GHz or similar, on Zen 4 architecture. AMD EPYC G4
  • 4 GB DDR5MEMORY
  • 50 GB NVMeSTORAGE
  • Unmetered bandwidth
  • IPv4 & IPv6IPv6 is currently unavailable in France, Finland or the Netherlands. included
  • Free auto backupsIncludes one backup slot you can set to run daily, weekly or monthly.

Genoa VPS.G4

$44.99 Save  22 %
$34.99 Monthly
  • 4 vCPUAMD EPYC Genoa 4th generation 9xx4 with 3.25 GHz or similar, on Zen 4 architecture. AMD EPYC G4
  • 8 GB DDR5MEMORY
  • 100 GB NVMeSTORAGE
  • Unmetered bandwidth
  • IPv4 & IPv6IPv6 is currently unavailable in France, Finland or the Netherlands. included
  • Free auto backupsIncludes one backup slot you can set to run daily, weekly or monthly.

Genoa VPS.G6

$89.99 Save  22 %
$69.99 Monthly
  • 8 vCPUAMD EPYC Genoa 4th generation 9xx4 with 3.25 GHz or similar, on Zen 4 architecture. AMD EPYC G4
  • 16 GB DDR5MEMORY
  • 200 GB NVMeSTORAGE
  • Unmetered bandwidth
  • IPv4 & IPv6IPv6 is currently unavailable in France, Finland or the Netherlands. included
  • Free auto backupsIncludes one backup slot you can set to run daily, weekly or monthly.

Genoa VPS.G7

$159.99 Save  22 %
$124.99 Monthly
  • 8 vCPUAMD EPYC Genoa 4th generation 9xx4 with 3.25 GHz or similar, on Zen 4 architecture. AMD EPYC G4
  • 32 GB DDR5MEMORY
  • 250 GB NVMeSTORAGE
  • Unmetered bandwidth
  • IPv4 & IPv6IPv6 is currently unavailable in France, Finland or the Netherlands. included
  • Free auto backupsIncludes one backup slot you can set to run daily, weekly or monthly.

AMD Ryzen VPS.R1

$16.99 Save  18 %
$13.99 Monthly
  • 1 dedicated CPU AMD Ryzen 9 7950X with 4.5 GHz or similar, on Zen 4 architecture. vCPU
  • 4 GB DDR5MEMORY
  • 50 GB NVMeSTORAGE
  • Unmetered bandwidth
  • IPv4 & IPv6 included IPv6 support is currently unavailable in France, Finland or the Netherlands.
  • Auto backup included

AMD Ryzen VPS.R2

$29.99 Save  17 %
$24.99 Monthly
  • 2 dedicated CPUs AMD Ryzen 9 7950X with 4.5 GHz or similar, on Zen 4 architecture. vCPU
  • 8 GB DDR5MEMORY
  • 100 GB NVMeSTORAGE
  • Unmetered bandwidth
  • IPv4 & IPv6 included IPv6 support is currently unavailable in France, Finland or the Netherlands.
  • Auto backup included

AMD Ryzen VPS.R4

$109.99 Save  18 %
$89.99 Monthly
  • 8 dedicated CPUs AMD Ryzen 9 7950X with 4.5 GHz or similar, on Zen 4 architecture. vCPU
  • 32 GB DDR5MEMORY
  • 400 GB NVMeSTORAGE
  • Unmetered bandwidth
  • IPv4 & IPv6 included IPv6 support is currently unavailable in France, Finland or the Netherlands.
  • Auto backup included

*VAT excluded.

INCLUDED WITH EVERY PLAN

✓ No setup fees ✓1 Gbps network
✓ Full root access on KVM ✓ Free server monitoring ✓ Firewall management ✓24/7 support

Uninstall Miniconda on Linux and macOS

Four commands, in this order, because the second one needs conda to still exist:

conda activate
conda init --reverse --all
rm -rf ~/miniconda3
rm -rf ~/.condarc ~/.conda ~/.continuum

The first activates base so the right conda answers. The second is what the old guides miss: conda init --reverse --all undoes what conda init did at install time, pulling the initialization block out of every shell config it touched, .bashrc, .zshrc and friends. Then the install directory goes (sudo rm -rf /opt/miniconda3 instead, for a system-wide install), and the last line clears the hidden leftovers: your channel config, the environments directory some tools create and the ancient .continuum folder. Open a new terminal afterwards and conda should come back as command not found, which this one time is the success state.

Use the uninstall.sh script on newer installs

Installs made from Miniconda 24.11.1 or later ship an uninstaller of their own, and the official uninstall documentation now leads with it:

~/miniconda3/uninstall.sh --remove-caches --remove-config-files user --remove-user-data

Those flags fold the manual cleanup into one command; run the script bare instead if .condarc should survive for a future install. System-wide installs take sudo -E /opt/miniconda3/uninstall.sh. No uninstall.sh in the install directory means the install predates the script, and the four manual commands above are the route.

Uninstall Miniconda on Windows

The install folder, by default miniconda3 in your user profile, contains Uninstall-Miniconda3.exe. Run it from there, or find Miniconda under installed apps in Settings. Beyond deleting files, it removes the Start Menu entries and the registry values the installer created, which is precisely the part a bare folder deletion never cleans up, so it stays the right tool even when deleting the folder looks quicker.

Scripted and fleet removals have a silent mode:

start /wait .\miniconda3\Uninstall-Miniconda3.exe /S

Since version 24.11.1 the uninstaller also accepts cleanup flags, making a full silent removal:

start /wait .\miniconda3\Uninstall-Miniconda3.exe /S /RemoveCaches=1 /RemoveConfigFiles=user /RemoveUserData=1

On older installs those flags don't exist, and you finish by deleting .condarc and the .conda folder from your user profile by hand.

Remove Miniconda installed with Homebrew

An install that arrived via the cask leaves via brew, but run conda init --reverse --all first, since brew won't touch your shell config:

conda init --reverse --all
brew uninstall --zap --cask miniconda

--zap earns its extra characters here: the miniconda cask defines a zap stanza covering ~/.conda, ~/.condarc and ~/.continuum, so the hidden-directory sweep happens for you, where a plain brew uninstall --cask miniconda removes only the install itself. Worth knowing in passing: the miniconda and miniforge casks conflict, so on macOS this uninstall is the mandatory first step of a switch. A fair number of people remove Miniconda for exactly that reason, moving to conda-forge-first tooling, and the Miniconda vs Miniforge comparison goes through what changes when you do.

Check your shell config for leftovers

On any machine where conda has been installed more than once over the years, verify the cleanup:

grep -n conda ~/.bashrc ~/.zshrc ~/.bash_profile 2>/dev/null

Clean output means done. What you're hunting is the block fenced by # >>> conda initialize >>> and # <<< conda initialize <<<, plus any manual PATH exports pointing at a miniconda directory. Orphaned lines like these cause most of the odd shell behavior people meet after a partial removal, the terminal printing a missing-directory error on every launch being the common one, and that family of problems has its own entry in the Miniconda troubleshooting guide. Delete the block, open a fresh terminal, and the shell is back to what it was before conda moved in.

Coming back someday is cheap, for the record. A clean reinstall takes minutes on any platform, and the walkthroughs to install Miniconda on Ubuntu and install Miniconda on Windows both start from an empty machine.

Questions?

Can I keep my environments and reinstall Miniconda later?

Not in place. Environments carry hardcoded paths back into the install that created them, so parking the envs/ folder aside and dropping it into a new install breaks in subtle ways. The route that works is in the article: export each env to a yml file before uninstalling, then rebuild with conda env create -f after the reinstall. Rebuilds go quickly, since the new install downloads only what the files name.

About the author

Oliver P. Redmond

I studied history and, for a while, expected to end up in archives (or academic publishing). Instead I took a copy-editing job with a small specialist publisher, learnt rather more about XML than the job description had implied and gradually found myself editing software manuals. Naturally, technical writing followed from there.

What I like about infrastructure is the accumulated quality. A modern service may have an elegant interface sitting on top of conventions and protocols that are sometimes older than the person using it. And so, understanding a system often means following those layers backwards. I write mostly about Linux systems, virtual machines and storage. I live in Bristol and still use a fountain pen for notes.

Deploy your next project in seconds

Bring your winning ideas online faster, with modern hardware and unmetered bandwidth. Join a European cloud trusted by thousands of developers and businesses worldwide.