To delete a Conda environment, you can use the conda env remove
command. This command will remove the specified environment and all its packages.
Here's how to delete a Conda environment:
-
Open your terminal or command prompt.
-
Type the following command, replacing
environment_name
with the name of the environment you want to delete:conda env remove -n environment_name
-
Press Enter to execute the command.
Example:
To delete an environment named "my_env", you would use the following command:
conda env remove -n my_env
Important Note:
- This action is irreversible. Once you delete an environment, it cannot be recovered.
- Make sure you have a backup of any important data or files before deleting an environment.
Additional Information:
-
You can also use the
--yes
flag to skip the confirmation prompt:conda env remove -n environment_name --yes
-
If you are unsure of the environment name, you can list all available environments using the
conda env list
command.