In order to reset replication, I did drop the local mongo database using the following commands:
use local; db.dropDatabase();
The mongo data directory(dbPath) is
I took a backup of this folder before dropping the local database and reinstated the same after issuing
db.dropDatabase(). After that restarted mongo service.
Is this the correct way and if not any chance of data loss pertaining to users, DB etc.?