6.3.6. Deleting Entries

With the ldapmodify command, authorized users can delete entries from the directory.

Example 6.18. Delete: Removing a Subtree

The following example uses the subtree delete option to remove all Special Users from the directory.

$ ldapdelete
 --port 1389
 --bindDN "cn=Directory Manager"
 --bindPassword password
 --deleteSubtree "ou=Special Users,dc=example,dc=com"
Processing DELETE request for ou=Special Users,dc=example,dc=com
DELETE operation successful for DN ou=Special Users,dc=example,dc=com