Skip to content

Instantly share code, notes, and snippets.

@codfish
Created July 29, 2014 17:12
Show Gist options
  • Save codfish/a788534ae80a4d170f4c to your computer and use it in GitHub Desktop.
Save codfish/a788534ae80a4d170f4c to your computer and use it in GitHub Desktop.
Delete all local gems with this one liner. Source: http://stackoverflow.com/a/8095234
# In Ruby 2.0 there are protected default gems that wont get uninstalled by this.
$ for i in `gem list --no-versions`; do gem uninstall -aIx $i; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment