You can disable Soft-Delete automatic purging using the dsconfig command. The change takes effect immediately without the need of a server restart. However, if the server is in the middle of an automatic soft-delete purging, it may continue to purge entries until the next time it evaluates the Soft Delete Policy.

  • Run dsconfig to reset the Soft-Delete Policy properties that control automatic purging: soft-delete-retention-time and soft-delete-retain-number-of-entries.
    $ bin/dsconfig set-soft-delete-policy-prop \
      --policy-name default-soft-delete-policy \
      --reset soft-delete-retention-time \
      --reset soft-delete-retain-number-of-entries