1. You can generate a file of DNs that you would like to delete from the Directory Server.
    The following command searches for all entries in the ou=Accounting branch and returns the DNs of the subentries.
    $ bin/dump-dns -D "cn=admin,dc=example,dc=com" -w password --baseDN \
                            "ou=Accounting,ou=People,dc=example,dc=com" --outputFile /usr/local/entry_dns.txt
  2. Run the ldapdelete command with the file to delete the entries. The command uses the --continueError option, which will continue deleting through the whole list even if an error is encountered for a DN entry.
    $ bin/ldapdelete --filename /usr/local/entry_dns.txt --continueError