Skip to content

Instantly share code, notes, and snippets.

@planetceres
Last active March 27, 2018 21:28
Show Gist options
  • Save planetceres/6adba9da8d8de2b94d85b8266c05f4b3 to your computer and use it in GitHub Desktop.
Save planetceres/6adba9da8d8de2b94d85b8266c05f4b3 to your computer and use it in GitHub Desktop.
Remove all conda environmets 'bash conda_remove_all.sh'
#!/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