Configure the soft delete feature by creating a soft delete policy and then setting the configuration property on the server. The presence of the soft-delete policy enables the feature on the server and allows the global configuration property to send the necessary soft delete requests.
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:
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
Configure the soft delete as a global configuration property using the
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