Skip to content

End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Gem::ConfigFile#unset_api_key!

unset_api_key!

Remove the +~/.gem/credentials+ file to clear all the current sessions.

See also #set_config_file_name #write #set_api_key also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0