How to uninstall all ruby gems on windows?
问题 How to uninstall all ruby gems on Windows? Is it possible with single command? 回答1: 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! 回答2: I've found an elegant solution gem list | %{$_.split(' ')[0]} | %{gem uninstall -Iax $_ } and Windows Powershell 回答3: You can delete the contents of your gems folder. Where this is will