Remove All Installed Gems

To remove all installed gems that are removable, simply use the following statement:

for x in `gem list --no-versions`; do gem uninstall $x -a -x -I; done

Leave a Reply