{
    "mode": "man",
    "parameter": "drop_language",
    "section": "7",
    "url": "https://www.chedong.com/phpMan.php/man/drop_language/7/json",
    "generated": "2026-06-16T10:12:41Z",
    "synopsis": "DROP [ PROCEDURAL ] LANGUAGE [ IF EXISTS ] name [ CASCADE | RESTRICT ]",
    "sections": {
        "NAME": {
            "content": "DROPLANGUAGE - remove a procedural language\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "DROP [ PROCEDURAL ] LANGUAGE [ IF EXISTS ] name [ CASCADE | RESTRICT ]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "DROP LANGUAGE removes the definition of a previously registered procedural language. You must\nbe a superuser or the owner of the language to use DROP LANGUAGE.\n\nNote\nAs of PostgreSQL 9.1, most procedural languages have been made into “extensions”, and\nshould therefore be removed with DROP EXTENSION not DROP LANGUAGE.\n",
            "subsections": []
        },
        "PARAMETERS": {
            "content": "IF EXISTS\nDo not throw an error if the language does not exist. A notice is issued in this case.\n\nname\nThe name of an existing procedural language.\n\nCASCADE\nAutomatically drop objects that depend on the language (such as functions in the\nlanguage), and in turn all objects that depend on those objects (see Section 5.14).\n\nRESTRICT\nRefuse to drop the language if any objects depend on it. This is the default.\n",
            "subsections": []
        },
        "EXAMPLES": {
            "content": "This command removes the procedural language plsample:\n\nDROP LANGUAGE plsample;\n",
            "subsections": []
        },
        "COMPATIBILITY": {
            "content": "There is no DROP LANGUAGE statement in the SQL standard.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "ALTER LANGUAGE (ALTERLANGUAGE(7)), CREATE LANGUAGE (CREATELANGUAGE(7))\n\n\n\nPostgreSQL 14.23                                2026                                DROP LANGUAGE(7)",
            "subsections": []
        }
    },
    "summary": "DROPLANGUAGE - remove a procedural language",
    "flags": [],
    "examples": [
        "This command removes the procedural language plsample:",
        "DROP LANGUAGE plsample;"
    ],
    "see_also": [
        {
            "name": "ALTERLANGUAGE",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/ALTERLANGUAGE/7/json"
        },
        {
            "name": "CREATELANGUAGE",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/CREATELANGUAGE/7/json"
        },
        {
            "name": "LANGUAGE",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/LANGUAGE/7/json"
        }
    ]
}