{
    "mode": "man",
    "parameter": "DROP_ACCESS_METHOD",
    "section": "7",
    "url": "https://www.chedong.com/phpMan.php/man/DROP_ACCESS_METHOD/7/json",
    "generated": "2026-05-30T05:14:34Z",
    "synopsis": "DROP ACCESS METHOD [ IF EXISTS ] name [ CASCADE | RESTRICT ]",
    "sections": {
        "NAME": {
            "content": "DROPACCESSMETHOD - remove an access method\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "DROP ACCESS METHOD [ IF EXISTS ] name [ CASCADE | RESTRICT ]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "DROP ACCESS METHOD removes an existing access method. Only superusers can drop access\nmethods.\n",
            "subsections": []
        },
        "PARAMETERS": {
            "content": "IF EXISTS\nDo not throw an error if the access method does not exist. A notice is issued in this\ncase.\n\nname\nThe name of an existing access method.\n\nCASCADE\nAutomatically drop objects that depend on the access method (such as operator classes,\noperator families, and indexes), and in turn all objects that depend on those objects\n(see Section 5.14).\n\nRESTRICT\nRefuse to drop the access method if any objects depend on it. This is the default.\n",
            "subsections": []
        },
        "EXAMPLES": {
            "content": "Drop the access method heptree:\n\nDROP ACCESS METHOD heptree;\n",
            "subsections": []
        },
        "COMPATIBILITY": {
            "content": "DROP ACCESS METHOD is a PostgreSQL extension.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "CREATE ACCESS METHOD (CREATEACCESSMETHOD(7))\n\n\n\nPostgreSQL 14.23                                2026                           DROP ACCESS METHOD(7)",
            "subsections": []
        }
    },
    "summary": "DROPACCESSMETHOD - remove an access method",
    "flags": [],
    "examples": [
        "Drop the access method heptree:",
        "DROP ACCESS METHOD heptree;"
    ],
    "see_also": [
        {
            "name": "CREATEACCESSMETHOD",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/CREATEACCESSMETHOD/7/json"
        },
        {
            "name": "METHOD",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/METHOD/7/json"
        }
    ]
}