Page created: 12 May 2021 |
Page updated: 1 Nov 2021
This topic discusses the steps to remove a node from an existing MongoDB replica set.
- An active replica set.
- To remove a member, the MongoDB user must have clusterAdmin privileges.
To remove a node from an existing replica set:
- Connect to the node that you wish to remove and shut down the MongoDB on it using the
- Connect to the primary member of the replica set and run the following command to remove the
absrs01:PRIMARY> rs.remove("<IP Address or hostname of the node to be removed>:27017")