Skip to content

Instantly share code, notes, and snippets.

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