How to uninstall all ruby gems on Windows? Is it possible with single command?
One line to rule them all. Power shell not needed. From command prompt run:
ruby -e "`gem list`.split(/$/).each { |line| puts `gem uninstall -Iax #{line.split(' ')[0]}` unless line.empty? }"
Just copy / paste and voila!