title: What did I actually delete by running "gem sources -c"?
body: <p>I ran "<code>gem sources -c</code>" so that I have to deliberately specify where I want to install a gem from since I now have 3 different sources for gem installs - RubyForge, Github and Gemcutter.</p>
  
  <pre><code>C:\&gt;gem sources -c
  *** Removed specs cache ***
  *** Removed user source cache ***
  *** Removed latest user source cache ***
  *** Removed system source cache ***
  *** Removed latest system source cache ***
  </code></pre>
  
  <p>After running this command I again ran <code>gem sources</code> to make sure I no longer have any default sources and I get this:</p>
  
  <pre><code>C:\&gt;gem sources
  *** CURRENT SOURCES ***
  
  http://gems.rubyforge.org
  http://gems.github.com
  http://gems.rubyforge.org/
  http://gemcutter.org
  </code></pre>
  
  <p>In other words, <strong>nothing has changed</strong>.</p>
  
  <p>Looking at the help for <code>gem sources -c</code> below it seems to be the correct command to remove all gem sources at once:</p>
  
  <pre><code>    -c, --clear-all                  Remove all sources (clear the cache)
  </code></pre>
  
  <p>Otherwise, it seems you have to remove them one by one. <strong>Not a big deal since I only have 4 but I wonder what I actually deleted by doing "<code>gem sources -c</code>"</strong>.</p>
  
  <pre><code>C:\&gt;gem sources --help
  Usage: gem sources [options]
  
    Options:
      -a, --add SOURCE_URI             Add source
      -l, --list                       List sources
      -r, --remove SOURCE_URI          Remove source
      -c, --clear-all                  Remove all sources (clear the cache)
      -u, --update                     Update source cache
  
    Local/Remote Options:
      -p, --[no-]http-proxy [URL]      Use HTTP proxy for remote operations
  
    Common Options:
      -h, --help                       Get help on this command
      -V, --[no-]verbose               Set the verbose level of output
      -q, --quiet                      Silence commands
          --config-file FILE           Use this config file instead of default
          --backtrace                  Show stack backtrace on errors
          --debug                      Turn on Ruby debugging
  </code></pre>