You can use the LDIF changetype directive to delete an entry from the Directory Server using the ldapmodify tool. You can only delete leaf entries.

To delete an entry using ldapmodify:

  • From the command line, use the ldapmodify tool with the changetype:delete directive. Enter the DN, press Enter to go to the next line, then enter the changetype directive. Press Control-D twice to enter the EOF sequence (UNIX) or Control-Z (Windows).
    $ bin/ldapmodify --hostname server1.example.com -port 389 --bindDN "uid=admin,dc=example,dc=com" --bindPassword password 
    dn:uid=user.14,ou=People,dc=example,dc=com 
    changetype: delete