• Run the ldapsearch command to retrieve all soft-deleted entries using the ds-soft-delete-entry object class.
    $ bin/ldapsearch --baseDN dc=example,dc=com \      
      "(objectclass=ds-soft-delete-entry)"