2 $Header: /cvsroot/pgsql/doc/src/sgml/ref/drop_user.sgml,v 1.8 1999/12/04 04:53:15 momjian Exp $
6 <refentry id="SQL-DROPUSER">
8 <refentrytitle id="SQL-DROPUSER-TITLE">
11 <refmiscinfo>SQL - Language Statements</refmiscinfo>
18 Removes an user account information
23 <date>1999-07-20</date>
26 DROP USER <replaceable class="PARAMETER">name</replaceable>
29 <refsect2 id="R2-SQL-DROPUSER-1">
31 <date>1998-09-22</date>
40 <term><replaceable class="PARAMETER">name</replaceable></term>
43 The name of an existing user.
51 <refsect2 id="R2-SQL-DROPUSER-2">
53 <date>1998-09-22</date>
61 <term><computeroutput>
63 </computeroutput></term>
66 The message returned if the user is successfully deleted.
71 <term><computeroutput>
72 ERROR: removeUser: user "<replaceable class="parameter">name</replaceable>" does not exist.
73 </computeroutput></term>
76 This message occurs if the username is not found.
85 <refsect1 id="R1-SQL-DROPUSER-1">
87 <date>1998-09-22</date>
93 <command>DROP USER</command> removes the specified
94 user from the database,
95 along with any databases owned by the user. It
96 does not remove tables, views, or triggers owned by the
97 named user in databases not owned by the user. This statement
98 can be used in place of the <application>dropuser</application>
99 script, regardless of how the user was created.
102 <refsect2 id="R2-SQL-DROPUSER-3">
104 <date>1998-09-22</date>
110 <command>DROP USER</command> is a <productname>Postgres</productname>
114 Refer to <command>CREATE USER</command> and
115 <command>ALTER USER</command> for information on
116 how to create or modify user accounts.
121 <refsect1 id="R1-SQL-DROPUSER-2">
126 To drop a user account:
133 <refsect1 id="R1-SQL-DROPUSER-3">
138 <refsect2 id="R2-SQL-DROPUSER-4">
140 <date>1998-09-22</date>
146 There is no <command>DROP USER</command> in <acronym>SQL92</acronym>.
152 <!-- Keep this comment at the end of the file
157 sgml-minimize-attributes:nil
158 sgml-always-quote-attributes:t
161 sgml-parent-document:nil
162 sgml-default-dtd-file:"../reference.ced"
163 sgml-exposed-tags:nil
164 sgml-local-catalogs:"/usr/lib/sgml/catalog"
165 sgml-local-ecat-files:nil