.el .ne 3
.IP "\\$1" \\$2
..
-.TH "HTPASSWD" 1 "2003-05-13" "Apache HTTP Server" "htpasswd"
+.TH "HTPASSWD" 1 "2003-05-20" "Apache HTTP Server" "htpasswd"
.SH NAME
htpasswd \- Manage user files for basic authentication
.SH "SYNOPSIS"
.PP
-\fBhtpasswd\fR [ -\fBc\fR ] [ -\fBm\fR ] \fIpasswdfile\fR \fIusername\fR
+\fBhtpasswd\fR [ -\fBc\fR ] [ -\fBm\fR ] [ -\fBD\fR ] \fIpasswdfile\fR \fIusername\fR
.PP
-\fBhtpasswd\fR -\fBb\fR [ -\fBc\fR ] [ -\fBm\fR | -\fBd\fR | -\fBp\fR | -\fBs\fR ] \fIpasswdfile\fR \fIusername\fR \fIpassword\fR
+\fBhtpasswd\fR -\fBb\fR [ -\fBc\fR ] [ -\fBm\fR | -\fBd\fR | -\fBp\fR | -\fBs\fR ] [ -\fBD\fR ] \fIpasswdfile\fR \fIusername\fR \fIpassword\fR
.PP
\fBhtpasswd\fR -\fBn\fR [ -\fBm\fR | -\fBd\fR | -\fBs\fR | -\fBp\fR ] \fIusername\fR
-p
Use plaintext passwords\&. Though htpasswd will support creation on all platforms, the httpd daemon will only accept plain text passwords on Windows, Netware and TPF\&.
.TP
+-D
+Delete user\&. If the username exists in the specified htpasswd file, it will be deleted\&.
+.TP
\fIpasswdfile\fR
Name of the file to contain the user name and password\&. If -c is given, this file is created if it does not already exist, or rewritten and truncated if it does exist\&.
.TP
<h2><a name="synopsis" id="synopsis">Synopsis</a></h2>
<p><code><strong>htpasswd</strong>
[ -<strong>c</strong> ]
- [ -<strong>m</strong> ] <var>passwdfile</var> <var>username</var></code></p>
+ [ -<strong>m</strong> ]
+ [ -<strong>D</strong> ] <var>passwdfile</var> <var>username</var></code></p>
<p><code><strong>htpasswd</strong> -<strong>b</strong>
[ -<strong>c</strong> ]
[ -<strong>m</strong> |
-<strong>d</strong> |
-<strong>p</strong> |
- -<strong>s</strong> ] <var>passwdfile</var> <var>username</var>
+ -<strong>s</strong> ]
+ [ -<strong>D</strong> ] <var>passwdfile</var> <var>username</var>
<var>password</var></code></p>
<p><code><strong>htpasswd</strong> -<strong>n</strong>
creation on all platforms, the <a href="httpd.html">httpd</a> daemon will
only accept plain text passwords on Windows, Netware and TPF.</dd>
+ <dt><code>-D</code></dt>
+ <dd>Delete user. If the username exists in the specified htpasswd file, it
+ will be deleted.</dd>
+
<dt><code><var>passwdfile</var></code></dt>
<dd>Name of the file to contain the user name and password. If
<code>-c</code> is given, this file is created if it does not already exist,
<section id="synopsis"><title>Synopsis</title>
<p><code><strong>htpasswd</strong>
[ -<strong>c</strong> ]
- [ -<strong>m</strong> ] <var>passwdfile</var> <var>username</var></code></p>
+ [ -<strong>m</strong> ]
+ [ -<strong>D</strong> ] <var>passwdfile</var> <var>username</var></code></p>
<p><code><strong>htpasswd</strong> -<strong>b</strong>
[ -<strong>c</strong> ]
[ -<strong>m</strong> |
-<strong>d</strong> |
-<strong>p</strong> |
- -<strong>s</strong> ] <var>passwdfile</var> <var>username</var>
+ -<strong>s</strong> ]
+ [ -<strong>D</strong> ] <var>passwdfile</var> <var>username</var>
<var>password</var></code></p>
<p><code><strong>htpasswd</strong> -<strong>n</strong>
creation on all platforms, the <a href="httpd.html">httpd</a> daemon will
only accept plain text passwords on Windows, Netware and TPF.</dd>
+ <dt><code>-D</code></dt>
+ <dd>Delete user. If the username exists in the specified htpasswd file, it
+ will be deleted.</dd>
+
<dt><code><var>passwdfile</var></code></dt>
<dd>Name of the file to contain the user name and password. If
<code>-c</code> is given, this file is created if it does not already exist,