For this configuration, use the --useSoftDelete option used with the ldapmodify or ldapdelete commands to send the delete using the soft delete request control. Without the --useSoftDelete option, any delete is processed as a hard delete.

To configure soft deletes as a global configuration:

  1. Configure a soft delete policy using the dsconfig command.

    The soft delete configuration requires a soft delete policy, which enables the feature on the server.

    $ bin/dsconfig create-soft-delete-policy \
      --policy-name default-soft-delete-policy
  2. Configure the soft delete as a global configuration property using the dsconfig command.

    This command sets up the soft delete controls necessary to send them as a request.

    $ bin/dsconfig set-global-configuration-prop \
      --set soft-delete-policy:default-soft-delete-policy