Get in Touch With Us
Submitting the form below will ensure a prompt response from us.
To Remove Conda Environment, follow these steps:
List All Conda Environments
Before removing an environment, check the available environments using:
sh
conda env list
or
sh
conda info --envs
This will display all environments. Find the name of the one you want to delete.
Remove Conda Environment
Run the following command, replacing <env_name> with your environment’s name:
sh
conda remove --name --all
Example:
sh
conda remove --name myenv --all
The –all flag ensures that all dependencies and files related to the environment are deleted.
Verify the Environment is Deleted
Run:
sh
conda env list
The removed environment should no longer appear in the list.
Alternative: Manually Delete the Environment Folder
If conda remove –name <env_name> –all doesn’t work, you can manually delete the environment folder:
- Locate the environment directory:
- Windows: C:\Users\YourUsername\anaconda3\envs\
- macOS/Linux: ~/anaconda3/envs/ or ~/miniconda3/envs/
- Delete the folder corresponding to your environment.
Get in Touch With Us
Submitting the form below will ensure a prompt response from us.