1 .\\" auto-generated by docbook2man-spec $Revision: 1.25 $
2 .TH "DROPUSER" "1" "2003-11-02" "Application" "PostgreSQL Client Applications"
4 dropuser \- remove a PostgreSQL user account
8 \fBdropuser\fR\fR [ \fR\fB\fIoption\fB\fR...\fB \fR\fR]\fR\fR [ \fR\fB\fIusername\fB \fR\fR]\fR
11 \fBdropuser\fR removes an existing
13 \fBand\fR the databases which that user owned.
14 Only superusers (users with usesuper set in
15 the pg_shadow table) can destroy
18 \fBdropuser\fR is a wrapper around the
19 SQL command DROP USER [\fBdrop_user\fR(7)].
20 There is no effective difference between dropping users via
21 this utility and via other methods for accessing the server.
24 \fBdropuser\fR accepts the following command-line arguments:
27 Specifies the name of the PostgreSQL user to be removed.
28 You will be prompted for a name if none is specified on the command line.
33 Echo the commands that \fBdropuser\fR generates
34 and sends to the server.
39 Prompt for confirmation before actually removing the user.
44 Do not display a response.
47 \fBdropuser\fR also accepts the following
48 command-line arguments for connection parameters:
52 \fB--host \fIhost\fB\fR
53 Specifies the host name of the machine on which the
55 is running. If the value begins with a slash, it is used
56 as the directory for the Unix domain socket.
60 \fB--port \fIport\fB\fR
61 Specifies the TCP port or local Unix domain socket file
62 extension on which the server
63 is listening for connections.
65 \fB-U \fIusername\fB\fR
67 \fB--username \fIusername\fB\fR
68 User name to connect as (not the user name to drop)
73 Force password prompt (to connect to the server, not for the
74 password of the user to be dropped).
83 Default connection parameters
86 In case of difficulty, see DROP USER [\fBdrop_user\fR(7)] and \fBpsql\fR(1) for
87 discussions of potential problems and error messages.
88 The database server must be running at the
89 targeted host. Also, any default connection settings and environment
90 variables used by the \fBlibpq\fR front-end
94 To remove user joe from the default database
103 To remove user joe using the server on host
104 eden, port 5000, with verification and a peek at the underlying
108 $ \fBdropuser -p 5000 -h eden -i -e joe\fR
109 User "joe" and any owned databases will be permanently deleted.
110 Are you sure? (y/n) \fBy\fR
116 \fBcreateuser\fR(1), DROP USER [\fBdrop_user\fR(7)]