Search code examples
pythonanacondaconda

Conda remove all environments (except root)


I know I can delete a single environment with

 conda remove -n envname --all

but I often create multiple new environments for installing a specifiy package or testing it so I'll regularly end up with 5-10 environments and it's a pain to delete them after one another. Is there an easy way (for windows) to delete all environments except the root-environment?


Solution

  • Removing all directories inside the envs subdirectory that resides inside conda does the job. This is generally in your user folder ~.

    ~\.conda\envs\