Last Updated: February 25, 2016
·
757
· kb

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