How to delete all ruby gems February 25, 2011 GEMS=`gem list --no-versions` for x in $GEMS ; do gem uninstall $x; done Taken from