Parameter Name
-f
Table 2.3. ldapmodify Parameters Used for Modifying Entries
For full information on ldapmodify parameters, see the Directory Server Configuration, Command,
and File Reference.
2.2.5. Deleting Entries Using ldapdelete
The ldapdelete command-line utility opens a connection to the specified server using the provided
distinguished name and password and deletes the specified entry or entries.
NOTE
You can only delete entries at the end of a branch. You cannot delete entries that are
branch points in the directory tree.
For example, of the following three entries, only the last two entries can be deleted.
ou=People,dc=example,dc=com
cn=Paula Simon,ou=People,dc=example,dc=com
cn=Jerry O'Connor,ou=People,dc=example,dc=com
The entry that identifies the People subtree can be deleted only if there are not any entries below
it. To delete ou=People,dc=example,dc=com, you must first delete Paula Simon and Jerry
O'Connor's entries and all other entries in that subtree.
Like ldapmodify, running ldapdelete requires the DN and password to bind to the Directory
Server, the port and host of the Directory Server, and the DNs of the entries to delete. For example:
ldapdelete -D "cn=Directory Manager" -w King-Pin -h cyclops -p 845 "cn=Robert
Jenkins,ou=People,dc=example,dc=com" "cn=Lisa
Jangles,ou=People,dc=example,dc=com"
This ldapdelete example has the following values:
• The entries tp delete have the DNs cn=Robert Jenkins,ou=People,dc=example,dc=com
and cn=Lisa Jangles, ou=People,dc=example,dc=com.
• The bind DN is the Directory Manager, which has permission to delete every entry in the database,
and a password of King-Pin.
• The hostname is cyclops.
• The server uses port number 845.
Deleting Entries Using ldapdelete
Description
Optional parameter that specifies the file
containing the LDIF update statements used to
define the modifications. If you do not supply
this parameter, the update statements are read
from stdin. For information on supplying LDIF
update statements from the command-line,
Section 2.2.1, "Providing Input from the
refer to
Command-Line".
25
Need help?
Do you have a question about the DIRECTORY SERVER 8.0 - ADMINISTRATION and is the answer not in the manual?
Questions and answers