3 PostgreSQL documentation
6 <refentry id=
"SQL-DROPINDEX">
8 <refentrytitle id=
"SQL-DROPINDEX-TITLE">DROP INDEX
</refentrytitle>
9 <manvolnum>7</manvolnum>
10 <refmiscinfo>SQL - Language Statements
</refmiscinfo>
14 <refname>DROP INDEX
</refname>
15 <refpurpose>remove an index
</refpurpose>
18 <indexterm zone=
"sql-dropindex">
19 <primary>DROP INDEX
</primary>
24 DROP INDEX [ IF EXISTS ]
<replaceable class=
"PARAMETER">name
</replaceable> [, ...] [ CASCADE | RESTRICT ]
29 <title>Description
</title>
32 <command>DROP INDEX
</command> drops an existing index from the database
33 system. To execute this command you must be the owner of
39 <title>Parameters
</title>
43 <term><literal>IF EXISTS
</literal></term>
46 Do not throw an error if the index does not exist. A notice is issued
53 <term><replaceable class=
"PARAMETER">name
</replaceable></term>
56 The name (optionally schema-qualified) of an index to remove.
62 <term><literal>CASCADE
</literal></term>
65 Automatically drop objects that depend on the index.
71 <term><literal>RESTRICT
</literal></term>
74 Refuse to drop the index if any objects depend on it. This is
83 <title>Examples
</title>
86 This command will remove the index
<literal>title_idx
</literal>:
95 <title>Compatibility
</title>
98 <command>DROP INDEX
</command> is a
99 <productname>PostgreSQL
</productname> language extension. There
100 are no provisions for indexes in the SQL standard.
105 <title>See Also
</title>
107 <simplelist type=
"inline">
108 <member><xref linkend=
"sql-createindex" endterm=
"sql-createindex-title"></member>