1 <!-- doc/src/sgml/ref/drop_collation.sgml -->
3 <refentry id="SQL-DROPCOLLATION">
5 <refentrytitle>DROP COLLATION</refentrytitle>
6 <manvolnum>7</manvolnum>
7 <refmiscinfo>SQL - Language Statements</refmiscinfo>
11 <refname>DROP COLLATION</refname>
12 <refpurpose>remove a collation</refpurpose>
15 <indexterm zone="sql-dropcollation">
16 <primary>DROP COLLATION</primary>
21 DROP COLLATION [ IF EXISTS ] <replaceable>name</replaceable> [ CASCADE | RESTRICT ]
25 <refsect1 id="sql-dropcollation-description">
26 <title>Description</title>
29 <command>DROP COLLATION</command> removes a previously defined collation.
30 To be able to drop a collation, you must own the collation.
35 <title>Parameters</title>
39 <term><literal>IF EXISTS</literal></term>
42 Do not throw an error if the collation does not exist.
43 A notice is issued in this case.
49 <term><replaceable>name</replaceable></term>
53 The name of the collation. The collation name can be
60 <term><literal>CASCADE</literal></term>
63 Automatically drop objects that depend on the collation.
69 <term><literal>RESTRICT</literal></term>
72 Refuse to drop the collation if any objects depend on it. This
80 <refsect1 id="sql-dropcollation-examples">
81 <title>Examples</title>
84 To drop the collation named <literal>german</>:
86 DROP COLLATION german;
87 </programlisting></para>
90 <refsect1 id="sql-dropcollation-compat">
91 <title>Compatibility</title>
94 The <command>DROP COLLATION</command> command conforms to the
95 <acronym>SQL</acronym> standard, apart from the <literal>IF
96 EXISTS</> option, which is a <productname>PostgreSQL</> extension.
101 <title>See Also</title>
103 <simplelist type="inline">
104 <member><xref linkend="sql-altercollation"></member>
105 <member><xref linkend="sql-createcollation"></member>