There are instances where I would like to revert and uninstall all previous gem installations.
For instance, I needed to assist a friend migrate their rails developm
First make sure you have at least gem version 2.1.0
gem update --system gem --version # 2.6.4
To uninstall simply run:
gem uninstall --all
You may need to use the sudo command:
sudo
sudo gem uninstall --all