LDAP-UX Client Services B.05.00 Administrator's Guide

7.4.5 ldapdelete
You use the ldapdelete command-line utility to delete entries from an existing LDAP directory.
ldapdelete opens a connection to the specified server using the distinguished name and
password you provide, and deletes the entry or entries. For details, see the HP-UX Directory
Server administrator guide available at the following website:
http://www.hp.com/go/hpux-security-docs
Click HP-UX Directory Server.
7.4.5.1 Syntax
ldapdelete [optional_options]
where
optional_options
Specifies a series of command-line options.
7.4.5.2 ldapdelete options
The section lists ldapdelete options most commonly used. For detailed information, see the
HP-UX Directory Server configuration, command, and file reference.
-D Specifies the distinguished name (DN) with which to authenticate to the server. If specified,
this value must be a DN recognized by the Directory Server, and it must also have the
authority to delete the entries.
-h Specifies the name of the host on which the Directory Server is running. If you do not
specify a host, ldapdelete uses the local host.
-P Specifies the TCP port number that the Directory Server uses. The default is 389.
-dn
Specifies the DN of the entry to be deleted.
-w
Specifies the password associated with the distinguished name that is specified in the -D
option.
7.4 LDAP directory tools 297