---
title: Remove a member from a MongoDB replica set
description: This topic discusses the steps to remove a node from an existing MongoDB replica set.
component: pingintelligence
version: 5.1
page_id: pingintelligence:abs_ai_engine:pingintelligence_remove_member_mongodb
canonical_url: https://docs.pingidentity.com/pingintelligence/5.1/abs_ai_engine/pingintelligence_remove_member_mongodb.html
revdate: March 29, 2024
section_ids:
  related-links: Related links
---

# Remove a member from a MongoDB replica set

This topic discusses the steps to remove a node from an existing MongoDB replica set.

**Prerequisites:**

* An active replica set.

* To remove a member, the MongoDB user must have`clusterAdmin` privileges.

To remove a node from an existing replica set:

1. Connect to the node that you wish to remove and shut down the MongoDB on it using the following command.

   ```
   absrs01:PRIMARY> db.shutdownServer()
   ```

2. Connect to the primary member of the replica set and run the following command to remove the node.

   ```
   absrs01:PRIMARY> rs.remove("<IP Address or hostname of the node to be removed>:27017")
   ```

## Related links

<https://docs.mongodb.com/manual/tutorial/remove-replica-set-member/>
