Skip to content

Instantly share code, notes, and snippets.

@delip
Last active February 12, 2019 22:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save delip/66f40d8052c696a5ed6957978ab48fd0 to your computer and use it in GitHub Desktop.
Save delip/66f40d8052c696a5ed6957978ab48fd0 to your computer and use it in GitHub Desktop.
#!/bin/bash
conda env list | grep -v "^#" | grep -v "^$" | cut -f1 -d' ' | sort > all.envs
for env in `cat all.envs | grep -v "base" | grep -v "pytorch_p36"`
do
echo $env
conda remove --name $env --all --yes
done
rm *.envs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment