---
title: Modifying the replication purge delay
description: The replication purge delay specifies the period after which the PingDirectory server purges replication server database changes. Any change that is older than the purge delay is removed from the replication server database regardless of whether the change has been applied.
component: pingdirectory
version: 11.0
page_id: pingdirectory:pingdirectory_server_administration_guide:pd_ds_modify_replication_purge_delay
canonical_url: https://docs.pingidentity.com/pingdirectory/11.0/pingdirectory_server_administration_guide/pd_ds_modify_replication_purge_delay.html
revdate: September 13, 2023
section_ids:
  about-this-task: About this task
  steps: Steps
  choose-from: Choose from:
  example: Example:
---

# Modifying the replication purge delay

The replication purge delay specifies the period after which the PingDirectory server purges replication server database changes. Any change that is older than the purge delay is removed from the replication server database regardless of whether the change has been applied.

## About this task

Currently, PingDirectory server sets the default purge delay to one day. Administrators can change the default purge delay using the `dsconfig` tool.

|   |                                                                                                                                    |
| - | ---------------------------------------------------------------------------------------------------------------------------------- |
|   | To ensure proper replication processing, you must have the same purge delay value set for all replication servers in the topology. |

## Steps

* To change the purge delay, choose from one of the following options:

  ### Choose from:

  * Use the `dsconfig` tool.

  * Use the `dsconfig` tool in interactive mode:

    1. Open the **Advanced objects** menu.

    2. Select **Replication Server**.

    3. Select the replication synchronization provider.

    4. Select the option to change the replication purge delay.

       The property accepts time units of seconds (s), minutes (m), hours (h), days (d), or weeks (w).

### Example:

The following command changes the purge delay from the default of one day to two days.

```shell
$ bin/dsconfig set-replication-server-prop \
  --provider-name "Multimaster Synchronization" \
  --set "replication-purge-delay:2 d"
```
