1 .TH LDAPDELETE 1 "2008/07/16" "OpenLDAP 2.4.11"
2 .\" $OpenLDAP: pkg/ldap/doc/man/man1/ldapdelete.1,v 1.42.2.5 2008/02/11 23:26:39 kurt Exp $
3 .\" Copyright 1998-2008 The OpenLDAP Foundation All Rights Reserved.
4 .\" Copying restrictions apply. See COPYRIGHT/LICENSE.
6 ldapdelete \- LDAP delete entry tool
18 .BI \-d \ debuglevel\fR]
28 .BI \-y \ passwdfile\fR]
32 .BI \-h \ ldaphost\fR]
34 .BI \-P \ 2\fR\||\|\fI3\fR]
36 .BI \-p \ ldapport\fR]
38 .BR \-O \ security-properties ]
56 .BI \-z \ sizelimit\fR]
63 is a shell-accessible interface to the
64 .BR ldap_delete_ext (3)
68 opens a connection to an LDAP server, binds, and deletes one or more
69 entries. If one or more \fIDN\fP arguments are provided, entries with
70 those Distinguished Names are deleted. Each \fIDN\fP should be provided
71 using the LDAPv3 string representation as defined in RFC 4514.
72 If no \fIdn\fP arguments
73 are provided, a list of DNs is read from standard input (or from
74 \fIfile\fP if the -f flag is used).
78 Show what would be done, but don't actually delete entries. Useful for
79 debugging in conjunction with -v.
82 Use verbose mode, with many diagnostics written to standard output.
85 Continuous operation mode. Errors are reported, but
87 will continue with deletions. The default is to exit after
91 Enable manage DSA IT control.
93 makes control critical.
96 Set the LDAP debugging level to \fIdebuglevel\fP.
98 must be compiled with LDAP_DEBUG defined for this option to have any effect.
101 Read a series of DNs from \fIfile\fP, one per line, performing an
102 LDAP delete for each.
105 Use simple authentication instead of SASL.
108 Use the Distinguished Name \fIbinddn\fP to bind to the LDAP directory.
111 Prompt for simple authentication.
112 This is used instead of specifying the password on the command line.
115 Use \fIpasswd\fP as the password for simple authentication.
118 Use complete contents of \fIpasswdfile\fP as the password for
119 simple authentication.
122 Specify URI(s) referring to the ldap server(s); only the protocol/host/port
123 fields are allowed; a list of URI, separated by whitespace or commas
127 Specify an alternate host on which the ldap server is running.
128 Deprecated in favor of -H.
131 Specify an alternate TCP port where the ldap server is listening.
132 Deprecated in favor of -H.
134 .BI \-P \ 2\fR\||\|\fI3
135 Specify the LDAP protocol version to use.
138 Do a recursive delete. If the DN specified isn't a leaf, its
139 children, and all their children are deleted down the tree. No
140 verification is done, so if you add this switch, ldapdelete will
141 happily delete large portions of your tree. Use with care.
144 Use \fIsizelimit\fP when searching for children DN to delete,
145 to circumvent any server-side size limit. Only useful in conjunction
148 .BI \-O \ security-properties
149 Specify SASL security properties.
152 Enable SASL Interactive mode. Always prompt. Default is to prompt
156 Enable SASL Quiet mode. Never prompt.
159 Specify the authentication ID for SASL bind. The form of the identity depends on the
160 actual SASL mechanism used.
163 Specify the realm of authentication ID for SASL bind. The form of the realm
164 depends on the actual SASL mechanism used.
167 Specify the requested authorization ID for SASL bind.
169 must be one of the following formats:
171 .I <distinguished name>
177 Specify the SASL mechanism to be used for authentication. If it's not
178 specified, the program will choose the best mechanism the server knows.
181 Issue StartTLS (Transport Layer Security) extended operation. If you use
183 , the command will require the operation to be successful.
185 The following command:
188 ldapdelete "cn=Delete Me,dc=example,dc=com"
191 will attempt to delete the entry named "cn=Delete Me,dc=example,dc=com".
192 Of course it would probably be necessary to supply authentication
195 Exit status is 0 if no errors occur. Errors result in a non-zero exit
196 status and a diagnostic message being written to standard error.
204 .BR ldap_delete_ext (3)
206 The OpenLDAP Project <http://www.openldap.org/>
208 .\" Shared Project Acknowledgement Text
209 .B "OpenLDAP Software"
210 is developed and maintained by The OpenLDAP Project <http://www.openldap.org/>.
211 .B "OpenLDAP Software"
212 is derived from University of Michigan LDAP 3.3 Release.