Uninstalling all RubyGems

Oct 04, 2015
I was trying to clean up my Mac, this is when I wanted to uninstall all the Gems I installed on my system, removing them manually was a pain as some of them were dependencies and there were ways to many of them, so I discovered this way of removing all the RubyGems.
“` for i in `gem list –no-versions`; do sudo gem uninstall -aIx $i; done “`
Leave a comment below, if you have a better way to do this.

If you like this content, please consider buying me a coffee.

Buy me a coffeeBuy me a coffee

You will get access to contributer exclusive resources and content.

Thank you!

Darryl Dias

I am a student, artist, and author currently living in Florida. My interests range from technology to arts. I am also interested in programming, writing

Analytics by GoSquared