Deleting unused Mamba environments frees disk space and keeps your environment list manageable. Mamba uses the same environment management commands as Conda, executed with faster performance.
Delete Environment Command
mamba env remove -n environment_name
This permanently deletes the environment and all its packages. The operation cannot be undone — export first if there is any chance you will need the environment again.
List All Environments First
mamba env list
# or
conda env list
Review the list before deleting. The active environment is marked with an asterisk (*). Deactivate any active environment with conda deactivate before attempting to remove it.
Frequently Asked Questions
How do I free disk space by removing unused Mamba environments?
Run mamba env list to see all environments. For each unused environment, run mamba env remove -n env_name. Additionally, run mamba clean --all after removing environments to clear the package cache, which can reclaim significant additional disk space from cached package archives that are no longer needed.