How do you remove the documentation installed by gem install? How do you remove the documentation installed by gem install? ruby ruby

How do you remove the documentation installed by gem install?


run this command:

rm -r "$(gem env gemdir)"/doc/*

on windows if you use cygwin


Gem documentation is installed in [RUBY]/lib/ruby/gems/doc, where [RUBY] is the directory into which you installed Ruby (C:/ruby on my machine).

I don't see why you shouldn't just delete the folders representing the gems for which don't don't need documentation: you can always regenerate it.


I understand there is a .gemrc file that may be used.

install: --no-rdoc --no-riupdate: --no-rdoc --no-ri

puts the two lines in it.I believe you put the .gemrc file in your $Home directory.