2 doc/src/sgml/ref/drop_server.sgml
3 PostgreSQL documentation
6 <refentry id="SQL-DROPSERVER">
7 <indexterm zone="sql-dropserver">
8 <primary>DROP SERVER</primary>
12 <refentrytitle>DROP SERVER</refentrytitle>
13 <manvolnum>7</manvolnum>
14 <refmiscinfo>SQL - Language Statements</refmiscinfo>
18 <refname>DROP SERVER</refname>
19 <refpurpose>remove a foreign server descriptor</refpurpose>
24 DROP SERVER [ IF EXISTS ] <replaceable class="parameter">name</replaceable> [, ...] [ CASCADE | RESTRICT ]
29 <title>Description</title>
32 <command>DROP SERVER</command> removes an existing foreign server
33 descriptor. To execute this command, the current user must be the
39 <title>Parameters</title>
43 <term><literal>IF EXISTS</literal></term>
46 Do not throw an error if the server does not exist. A notice is
53 <term><replaceable class="parameter">name</replaceable></term>
56 The name of an existing server.
62 <term><literal>CASCADE</literal></term>
65 Automatically drop objects that depend on the server (such as
67 and in turn all objects that depend on those objects
68 (see <xref linkend="ddl-depend">).
74 <term><literal>RESTRICT</literal></term>
77 Refuse to drop the server if any objects depend on it. This is
86 <title>Examples</title>
89 Drop a server <literal>foo</> if it exists:
91 DROP SERVER IF EXISTS foo;
92 </programlisting></para>
96 <title>Compatibility</title>
99 <command>DROP SERVER</command> conforms to ISO/IEC 9075-9
100 (SQL/MED). The <literal>IF EXISTS</> clause is
101 a <productname>PostgreSQL</> extension.
106 <title>See Also</title>
108 <simplelist type="inline">
109 <member><xref linkend="sql-createserver"></member>
110 <member><xref linkend="sql-alterserver"></member>