gem uninstall version code example
Example 1: ruby gem uninstall
The command is simply: gem uninstall <gem-name>
NOTE: maybe you need sudo, depens on your user rights. like so
sudo gem uninstall <gem-name>
gem cleanup <gem-name>
gem uninstall <gem-name>
gem uninstall <gem-name> --version 1.1.9
gem uninstall <gem-name> --version '<1.3.4'
gem uninstall -aIx
Options
-a, --[no-]all Uninstall all matching versions
-I, --[no-]ignore-dependencies Ignore dependency requirements while
uninstalling
-x, --[no-]executables Uninstall applicable executables without
confirmation
Example 2: gem uninstall version specific
gem uninstall gem-name
gem uninstall gem-name -v version-number