Uninstall all ruby gems from your system

Sometimes you’ll want to remove all ruby gems from your system. This is very easy (at least under unix like operating systems). Just issue the following command:

% gem list | cut -d" " -f1 | xargs sudo gem uninstall -aIx

Afterwards all gems have been removed from your system.

Jens Grassel Written by:

Solving problems and burning chrome for fun and profit.