Thursday, 25 August 2016

How to delete replica set in MongoDB

I am using mongoDB version 3.2.
I created a replica set rs0.

I  do not know how to get rid of this.(I mean delete).


In order to use mongod as stand alone server instead replica set carry out following steps.
  1. Restart mongod process without --replSet  argument.
  2. Drop the local database
    use local;
    db.dropDatabase();
     
    It will help. 
    

No comments:

Post a Comment