Skip to content

Instantly share code, notes, and snippets.

@shubham7298
Created January 25, 2021 05:40
Show Gist options
  • Save shubham7298/a441d50e6a302817e598ca21bfa1f116 to your computer and use it in GitHub Desktop.
Save shubham7298/a441d50e6a302817e598ca21bfa1f116 to your computer and use it in GitHub Desktop.
Uninstalling rails completely
  1. Check the rails version:

rails -v

  1. Uninstall rails or a specific version of it.

gem uninstall rails -v 4.1.16

or

sudo gem uninstall rails -v 4.1.15

or just rails

gem uninstall rails

  1. Check rails version it still not cleared.
  2. Uninstall railties:

gem uninstall railties

or run with sudo

  1. Run cleanup:

gem cleanup

  1. Check rails version, hopefully it clear now🤞🏻
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment