---
title: Removing a member from MongoDB replica sets
description: You can remove a node from an existing MongoDB replica set.
component: pingintelligence
version: 5.2
page_id: pingintelligence:pingintelligence_reference_guide:pingintelligence_remove_member_mongodb
canonical_url: https://docs.pingidentity.com/pingintelligence/5.2/pingintelligence_reference_guide/pingintelligence_remove_member_mongodb.html
revdate: May 6, 2024
section_ids:
  before-you-begin: Before you begin
  about-this-task: About this task
  steps: Steps
  next-steps: Next steps
---

# Removing a member from MongoDB replica sets

You can remove a node from an existing MongoDB replica set.

## Before you begin

You must have:

* An active replica set.

* ClusterAdmin privileges.

## About this task

To remove a node from an existing replica set:

## Steps

1. Connect to the node that you want 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")
   ```

## Next steps

For more information, see [Remove Members from Replica Set](https://docs.mongodb.com/manual/tutorial/remove-replica-set-member/)in the MongoDB documentation.
