.\" XXX standard disclaimer belongs here....
.\" $Header: /private/postgres/ref/unix/RCS/destroyuser,v 1.5 1992/07/14 05:54:17 ptong Exp $
.SP DESTROYUSER UNIX 6/14/90
.XA 1 Destroyuser
.uh NAME
.lp
destroyuser \*- destroy a \*(PP user
.uh SYNOPSIS
.lp
.(l
\fBdestroyuser\fR [\fB-p\fR port] [\fB-h\fR host] username
.)l
.uh DESCRIPTION
.lp
.b Destroyuser
destroys an existing \*(PP user.
Only users with ``usesuper'' set in the pg_user class can destroy
\*(PP users.  As shipped, the user ``postgres'' can destroy users.
.sp
.i Username
is the name of the \*(PP user
to be destroyed.
.sp
The argument 
.i port
and
.i hostname
are the same as in the terminal monitor - they are used to connect to the
postmaster using the TCP/IP port
.i port
running on the database server
.i hostname.
The defaults are to the local machine (localhost) and to the default port
(4321).
.uh "INTERACTIVE QUESTIONS"
.lp
Once invoked with the above options
.b destroyuser
will warn the person destroying the \*(PP user about the databases that will
be destroyed in the process.  If the databases should not be destroyed, 
.b destroyuser
can be aborted.
.uh "SEE ALSO"
.lp
createuser(unix).
.uh DIAGNOSTICS
.lp
\fBYou are not a valid POSTGRES user\fR
.lp
You do not have a users file entry, and can
not do anything with \*(PP at all.
.sp
.lp
\fI<user>\fR \fBdoes not exist\fR
.lp
The user does not exist.
