how to remove member in mongodb replica set


Remove member from the current replica set Before running the rs.remove() operation, it is best to close the replica set member to be deleted. By default, the replica set member waits for 5 minutes, and then disconnects the deleted member




remove(hostname) :  remove the specified member from the current replica set
Was this helpful?

I hope to help every developer quickly find the commands they need. Of course, you can also add your own commonly used commands for easy searching.