title: Starting over with replica configuration in mongodb
body: <p>I did a mistake when configuring replica sets in mongodb. I think that what I did wrong is that I did a rs.initialize() on both nodes, which made them confused in some way. I'm not sure.</p>
  
  <p>Now all I want to do is start over, but I couldn't find a way to de-initialize a node. So I followed the advice to delete the local* db files, thus resetting the configurations. I did that, and now nothing works. </p>
  
  <pre><code>&gt; rs.initiate()
  {
      "info2" : "no configuration explicitly specified -- making one",
      "me" : "0.0.0.0:27017",
      "errmsg" : "couldn't initiate : can't find self in the replset config",
      "ok" : 0
  }
  &gt; rs.conf()
  null
  </code></pre>
  
  <p>I tried to remove and reinstall the package (I'm doing this on Ubuntu servers) which just meant that my mongodb.conf disappeared and my init script stopped working. This is of course easy enough to solve.</p>
  
  <p>So how do I start over?</p>
  
  <p>Note: I did look at <a href="https://stackoverflow.com/questions/12462167/mongodb-cant-initiate-replica-set-with-default-configuration">this answer</a>, but since rs.conf() doesn't work this doesn't work either.</p>