Community

About Apache

2.1.2 - Deleting Entries

Deleting entries is quite simple : you just need to provide their DN, and require for the deletion of the associated entry. Although there are a few conditions that must be fulfilled for this operatio to be successful :
The entry must exist;
It should not have any children;
* The user requiring the deletion must have enough priviledge to do so

Assuming those three conditions being fulfilled, you can proceed with the deletion. We will show how it works on the entry we added in the previous chapter.

Using the command line

You have to use an authorized user to delete the entry, here, cn=Horatio Nelson,ou=people,o=sevenSeas :

With an LDIF file (Captain hook delete) with an appropriate change entry, this can easily be accomplished, if the bind user is allowed to do so. Here is the content of this LDIF file :