Last active
March 27, 2018 21:28
-
-
Save planetceres/6adba9da8d8de2b94d85b8266c05f4b3 to your computer and use it in GitHub Desktop.
Remove all conda environmets 'bash conda_remove_all.sh'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
. ~/anaconda3/etc/profile.d/conda.sh | |
ENVS=$(conda env list | grep '^\w' | cut -d' ' -f1) | |
for env in $ENVS; do | |
conda remove -n $env --all | |
echo "Removing $env" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment