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:

  1. Locate the environment directory:
    • Windows: C:\Users\YourUsername\anaconda3\envs\
    • macOS/Linux: ~/anaconda3/envs/ or ~/miniconda3/envs/
  2. Delete the folder corresponding to your environment.
About Author

Jayanti Katariya is the CEO of Moon Technolabs, a fast-growing IT solutions provider, with 18+ years of experience in the industry. Passionate about developing creative apps from a young age, he pursued an engineering degree to further this interest. Under his leadership, Moon Technolabs has helped numerous brands establish their online presence and he has also launched an invoicing software that assists businesses to streamline their financial operations.

Related Q&A

Call Us Now

usa +1 (620) 330-9814
OR
+65
OR

You can send us mail

sales@moontechnolabs.com