I want to start over the configurations of replica, is it possible? How to reset it?
In group people saying to remove the database content, but are there any work around?
If you want to keep the data, but start outside a replica set, just restart the mongod process without the
To be completely sure that the replica set configuration is gone from the instance, make sure that the
Once that is done, and you are happy with your standalone instance, you can then restart with a different
The other option, as you mention, is to remove all the data files and start completely from scratch.
You do not need to remove any database files in order to reset the configuration of your replica set.
To reset the configuration, make sure every node in your replica set is stopped. Then delete the "local" database for every node.
Once you are confident all nodes are not running and the "local" database are gone, start the mongod process again (of course using the --replSet flag). Then run rs.initiate().