{
    "content": [
        {
            "type": "text",
            "text": "# DROP_SERVER(7) (man)\n\n**Summary:** DROPSERVER - remove a foreign server descriptor\n\n**Synopsis:** DROP SERVER [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]\n\n## Examples\n\n- `Drop a server foo if it exists:`\n- `DROP SERVER IF EXISTS foo;`\n\n## See Also\n\n- CREATESERVER(7)\n- ALTERSERVER(7)\n- SERVER(7)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (2 lines)\n- **DESCRIPTION** (3 lines)\n- **PARAMETERS** (13 lines)\n- **EXAMPLES** (4 lines)\n- **COMPATIBILITY** (3 lines)\n- **SEE ALSO** (5 lines)\n\n## Full Content\n\n### NAME\n\nDROPSERVER - remove a foreign server descriptor\n\n### SYNOPSIS\n\nDROP SERVER [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]\n\n### DESCRIPTION\n\nDROP SERVER removes an existing foreign server descriptor. To execute this command, the\ncurrent user must be the owner of the server.\n\n### PARAMETERS\n\nIF EXISTS\nDo not throw an error if the server does not exist. A notice is issued in this case.\n\nname\nThe name of an existing server.\n\nCASCADE\nAutomatically drop objects that depend on the server (such as user mappings), and in turn\nall objects that depend on those objects (see Section 5.14).\n\nRESTRICT\nRefuse to drop the server if any objects depend on it. This is the default.\n\n### EXAMPLES\n\nDrop a server foo if it exists:\n\nDROP SERVER IF EXISTS foo;\n\n### COMPATIBILITY\n\nDROP SERVER conforms to ISO/IEC 9075-9 (SQL/MED). The IF EXISTS clause is a PostgreSQL\nextension.\n\n### SEE ALSO\n\nCREATE SERVER (CREATESERVER(7)), ALTER SERVER (ALTERSERVER(7))\n\n\n\nPostgreSQL 14.23                                2026                                  DROP SERVER(7)\n\n"
        }
    ],
    "structuredContent": {
        "command": "DROP_SERVER",
        "section": "7",
        "mode": "man",
        "summary": "DROPSERVER - remove a foreign server descriptor",
        "synopsis": "DROP SERVER [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [
            "Drop a server foo if it exists:",
            "DROP SERVER IF EXISTS foo;"
        ],
        "see_also": [
            {
                "name": "CREATESERVER",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/CREATESERVER/7/json"
            },
            {
                "name": "ALTERSERVER",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/ALTERSERVER/7/json"
            },
            {
                "name": "SERVER",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/SERVER/7/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "PARAMETERS",
                "lines": 13,
                "subsections": []
            },
            {
                "name": "EXAMPLES",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "COMPATIBILITY",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            }
        ]
    }
}