{
    "content": [
        {
            "type": "text",
            "text": "# DROP_FOREIGN_DATA_WRAPPER (man)\n\n## NAME\n\nDROPFOREIGNDATAWRAPPER - remove a foreign-data wrapper\n\n## SYNOPSIS\n\nDROP FOREIGN DATA WRAPPER [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]\n\n## DESCRIPTION\n\nDROP FOREIGN DATA WRAPPER removes an existing foreign-data wrapper. To execute this command,\nthe current user must be the owner of the foreign-data wrapper.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **PARAMETERS**\n- **EXAMPLES**\n- **COMPATIBILITY**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "DROP_FOREIGN_DATA_WRAPPER",
        "section": "",
        "mode": "man",
        "summary": "DROPFOREIGNDATAWRAPPER - remove a foreign-data wrapper",
        "synopsis": "DROP FOREIGN DATA WRAPPER [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [
            "Drop the foreign-data wrapper dbi:",
            "DROP FOREIGN DATA WRAPPER dbi;"
        ],
        "see_also": [
            {
                "name": "CREATEFOREIGNDATAWRAPPER",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/CREATEFOREIGNDATAWRAPPER/7/json"
            },
            {
                "name": "ALTERFOREIGNDATAWRAPPER",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/ALTERFOREIGNDATAWRAPPER/7/json"
            },
            {
                "name": "WRAPPER",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/WRAPPER/7/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "PARAMETERS",
                "lines": 15,
                "subsections": []
            },
            {
                "name": "EXAMPLES",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "COMPATIBILITY",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 6,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "DROPFOREIGNDATAWRAPPER - remove a foreign-data wrapper\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "DROP FOREIGN DATA WRAPPER [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "DROP FOREIGN DATA WRAPPER removes an existing foreign-data wrapper. To execute this command,\nthe current user must be the owner of the foreign-data wrapper.\n",
                "subsections": []
            },
            "PARAMETERS": {
                "content": "IF EXISTS\nDo not throw an error if the foreign-data wrapper does not exist. A notice is issued in\nthis case.\n\nname\nThe name of an existing foreign-data wrapper.\n\nCASCADE\nAutomatically drop objects that depend on the foreign-data wrapper (such as foreign\ntables and servers), and in turn all objects that depend on those objects (see\nSection 5.14).\n\nRESTRICT\nRefuse to drop the foreign-data wrapper if any objects depend on it. This is the default.\n",
                "subsections": []
            },
            "EXAMPLES": {
                "content": "Drop the foreign-data wrapper dbi:\n\nDROP FOREIGN DATA WRAPPER dbi;\n",
                "subsections": []
            },
            "COMPATIBILITY": {
                "content": "DROP FOREIGN DATA WRAPPER conforms to ISO/IEC 9075-9 (SQL/MED). The IF EXISTS clause is a\nPostgreSQL extension.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "CREATE FOREIGN DATA WRAPPER (CREATEFOREIGNDATAWRAPPER(7)), ALTER FOREIGN DATA WRAPPER\n(ALTERFOREIGNDATAWRAPPER(7))\n\n\n\nPostgreSQL 14.23                                2026                    DROP FOREIGN DATA WRAPPER(7)",
                "subsections": []
            }
        }
    }
}