This help site has been deprecated. Please send your requests to support@rubygems.org

Removing an accidentally pushed gem

Here are the steps you should follow when you have accidentally pushed a gem with passwords or other private content.

  1. Yank the gem using gem yank which will prevent installs using gem install. The gem will NOT be downloadable using the download link on rubygems.org.

  2. If the gem contained passwords, or private keys immediately change them. Due to webhooks on rubygems.org your gem has already been downloaded by third parties.

  3. Add the allowed_push_host metadata to your gemspec so future gems cannot be pushed to rubygems.org by mistake.

Recent Discussions

03 Dec, 2021 11:06 AM
02 Dec, 2021 09:41 AM
16 Nov, 2021 07:55 AM
05 Nov, 2021 07:09 AM
03 Nov, 2021 07:18 PM