Oneliner to uninstall all ruby gems
gem list | awk '{ print $1 }' | xargs gem uninstall -a
Add sudo for system level gems.
gem list | awk '{ print $1 }' | xargs sudo gem uninstall -a
Written by Kyle Bolton
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#