{
    "content": [
        {
            "type": "text",
            "text": "# DROP_ACCESS_METHOD(7) (man)\n\n**Summary:** DROPACCESSMETHOD - remove an access method\n\n**Synopsis:** DROP ACCESS METHOD [ IF EXISTS ] name [ CASCADE | RESTRICT ]\n\n## Examples\n\n- `Drop the access method heptree:`\n- `DROP ACCESS METHOD heptree;`\n\n## See Also\n\n- CREATEACCESSMETHOD(7)\n- METHOD(7)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (2 lines)\n- **DESCRIPTION** (3 lines)\n- **PARAMETERS** (15 lines)\n- **EXAMPLES** (4 lines)\n- **COMPATIBILITY** (2 lines)\n- **SEE ALSO** (5 lines)\n\n## Full Content\n\n### NAME\n\nDROPACCESSMETHOD - remove an access method\n\n### SYNOPSIS\n\nDROP ACCESS METHOD [ IF EXISTS ] name [ CASCADE | RESTRICT ]\n\n### DESCRIPTION\n\nDROP ACCESS METHOD removes an existing access method. Only superusers can drop access\nmethods.\n\n### PARAMETERS\n\nIF 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\n### EXAMPLES\n\nDrop the access method heptree:\n\nDROP ACCESS METHOD heptree;\n\n### COMPATIBILITY\n\nDROP ACCESS METHOD is a PostgreSQL extension.\n\n### SEE ALSO\n\nCREATE ACCESS METHOD (CREATEACCESSMETHOD(7))\n\n\n\nPostgreSQL 14.23                                2026                           DROP ACCESS METHOD(7)\n\n"
        }
    ],
    "structuredContent": {
        "command": "DROP_ACCESS_METHOD",
        "section": "7",
        "mode": "man",
        "summary": "DROPACCESSMETHOD - remove an access method",
        "synopsis": "DROP ACCESS METHOD [ IF EXISTS ] name [ CASCADE | RESTRICT ]",
        "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"
            }
        ],
        "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": 2,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            }
        ]
    }
}