<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/drop_group.sgml,v 1.10 2005/01/09 05:57:45 tgl Exp $
PostgreSQL documentation
-->

<refentry id="SQL-DROPGROUP">
 <refmeta>
  <refentrytitle id="SQL-DROPGROUP-TITLE">DROP GROUP</refentrytitle>
  <refmiscinfo>SQL - Language Statements</refmiscinfo>
 </refmeta>

 <refnamediv>
  <refname>DROP GROUP</refname>
  <refpurpose>remove a user group</refpurpose>
 </refnamediv>

 <indexterm zone="sql-dropgroup">
  <primary>DROP GROUP</primary>
 </indexterm>

 <refsynopsisdiv>
<synopsis>
DROP GROUP <replaceable class="PARAMETER">name</replaceable>
</synopsis>
 </refsynopsisdiv>

 <refsect1>
  <title>Description</title>

  <para>
   <command>DROP GROUP</command> removes the specified group.  The
   users in the group are not removed.
  </para>
 </refsect1>
  
 <refsect1>
  <title>Parameters</title>

  <variablelist>
   <varlistentry>
    <term><replaceable class="PARAMETER">name</replaceable></term>
    <listitem>
     <para>
      The name of an existing group.
     </para>
    </listitem>
   </varlistentry>
  </variablelist>
 </refsect1>

 <refsect1>
  <title>Notes</title>

  <para>
   It is unwise to drop a group that has any
   granted permissions on objects.  Currently, this is not enforced,
   but it is likely that future versions of
   <productname>PostgreSQL</productname> will check for the error.
  </para>
 </refsect1>

 <refsect1>
  <title>Examples</title>

  <para>
   To drop a group:
<programlisting>
DROP GROUP staff;
</programlisting>
  </para>
 </refsect1>
 
 <refsect1>
  <title>Compatibility</title>

  <para>
   There is no <command>DROP GROUP</command> statement in the SQL standard.
  </para>
 </refsect1>

 <refsect1>
  <title>See Also</title>

  <simplelist type="inline">
   <member><xref linkend="sql-altergroup" endterm="sql-altergroup-title"></member>
   <member><xref linkend="sql-creategroup" endterm="sql-creategroup-title"></member>
  </simplelist>
 </refsect1>

</refentry>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:nil
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
sgml-parent-document:nil
sgml-default-dtd-file:"../reference.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:"/usr/lib/sgml/catalog"
sgml-local-ecat-files:nil
End:
-->
