{
    "mode": "man",
    "parameter": "DROP_VIEW",
    "section": "7",
    "url": "https://www.chedong.com/phpMan.php/man/DROP_VIEW/7/json",
    "generated": "2026-10-09T16:59:56Z",
    "synopsis": "DROP VIEW [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]",
    "sections": {
        "NAME": {
            "content": "DROPVIEW - remove a view\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "DROP VIEW [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "DROP VIEW drops an existing view. To execute this command you must be the owner of the view.\n",
            "subsections": []
        },
        "PARAMETERS": {
            "content": "IF EXISTS\nDo not throw an error if the view does not exist. A notice is issued in this case.\n\nname\nThe name (optionally schema-qualified) of the view to remove.\n\nCASCADE\nAutomatically drop objects that depend on the view (such as other views), and in turn all\nobjects that depend on those objects (see Section 5.14).\n\nRESTRICT\nRefuse to drop the view if any objects depend on it. This is the default.\n",
            "subsections": []
        },
        "EXAMPLES": {
            "content": "This command will remove the view called kinds:\n\nDROP VIEW kinds;\n",
            "subsections": []
        },
        "COMPATIBILITY": {
            "content": "This command conforms to the SQL standard, except that the standard only allows one view to\nbe dropped per command, and apart from the IF EXISTS option, which is a PostgreSQL extension.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "ALTER VIEW (ALTERVIEW(7)), CREATE VIEW (CREATEVIEW(7))\n\nPostgreSQL 16.14                                2026                                    DROP VIEW(7)",
            "subsections": []
        }
    },
    "summary": "DROPVIEW - remove a view",
    "flags": [],
    "examples": [
        "This command will remove the view called kinds:",
        "DROP VIEW kinds;"
    ],
    "see_also": [
        {
            "name": "ALTERVIEW",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/ALTERVIEW/7/json"
        },
        {
            "name": "CREATEVIEW",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/CREATEVIEW/7/json"
        },
        {
            "name": "VIEW",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/VIEW/7/json"
        }
    ]
}