Last active
March 27, 2018 21:27
-
-
Save planetceres/ce846796613457177138a4497f3f74ef to your computer and use it in GitHub Desktop.
[Deprecated] Remove all Anaconda environments with prompt `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 | |
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