Deleting a Mamba environment permanently removes all its packages, binaries, and configuration from your system. The command is straightforward but irreversible — export the environment first if you may need it again.

Delete a Mamba Environment by Name

mamba env remove -n environment_name

Deactivate the environment first if it is currently active — you cannot remove an active environment. Check which environment is active with conda env list, then deactivate with conda deactivate before removing.

Export Before Deleting

mamba env export -n environment_name --no-builds > backup.yml
mamba env remove -n environment_name

Verify the Environment is Deleted

mamba env list

The deleted environment should no longer appear in the list. If it does, the removal did not complete — check that you deactivated the environment first and retry.

Frequently Asked Questions

Is mamba env remove the same as conda remove env?

Yes — Mamba uses identical syntax to Conda for environment management. The only difference is speed: Mamba’s parallel solver completes environment operations significantly faster than Conda’s serial solver.