{
    "mode": "man",
    "parameter": "DROP_OPERATOR_FAMILY",
    "section": "7",
    "url": "https://www.chedong.com/phpMan.php/man/DROP_OPERATOR_FAMILY/7/json",
    "generated": "2026-07-05T13:26:40Z",
    "synopsis": "DROP OPERATOR FAMILY [ IF EXISTS ] name USING indexmethod [ CASCADE | RESTRICT ]",
    "sections": {
        "NAME": {
            "content": "DROPOPERATORFAMILY - remove an operator family\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "DROP OPERATOR FAMILY [ IF EXISTS ] name USING indexmethod [ CASCADE | RESTRICT ]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "DROP OPERATOR FAMILY drops an existing operator family. To execute this command you must be\nthe owner of the operator family.\n\nDROP OPERATOR FAMILY includes dropping any operator classes contained in the family, but it\ndoes not drop any of the operators or functions referenced by the family. If there are any\nindexes depending on operator classes within the family, you will need to specify CASCADE for\nthe drop to complete.\n",
            "subsections": []
        },
        "PARAMETERS": {
            "content": "IF EXISTS\nDo not throw an error if the operator family does not exist. A notice is issued in this\ncase.\n\nname\nThe name (optionally schema-qualified) of an existing operator family.\n\nindexmethod\nThe name of the index access method the operator family is for.\n\nCASCADE\nAutomatically drop objects that depend on the operator family, and in turn all objects\nthat depend on those objects (see Section 5.14).\n\nRESTRICT\nRefuse to drop the operator family if any objects depend on it. This is the default.\n",
            "subsections": []
        },
        "EXAMPLES": {
            "content": "Remove the B-tree operator family floatops:\n\nDROP OPERATOR FAMILY floatops USING btree;\n\nThis command will not succeed if there are any existing indexes that use operator classes\nwithin the family. Add CASCADE to drop such indexes along with the operator family.\n",
            "subsections": []
        },
        "COMPATIBILITY": {
            "content": "There is no DROP OPERATOR FAMILY statement in the SQL standard.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "ALTER OPERATOR FAMILY (ALTEROPERATORFAMILY(7)), CREATE OPERATOR FAMILY\n(CREATEOPERATORFAMILY(7)), ALTER OPERATOR CLASS (ALTEROPERATORCLASS(7)), CREATE OPERATOR\nCLASS (CREATEOPERATORCLASS(7)), DROP OPERATOR CLASS (DROPOPERATORCLASS(7))\n\n\n\nPostgreSQL 14.23                                2026                         DROP OPERATOR FAMILY(7)",
            "subsections": []
        }
    },
    "summary": "DROPOPERATORFAMILY - remove an operator family",
    "flags": [],
    "examples": [
        "Remove the B-tree operator family floatops:",
        "DROP OPERATOR FAMILY floatops USING btree;",
        "This command will not succeed if there are any existing indexes that use operator classes",
        "within the family. Add CASCADE to drop such indexes along with the operator family."
    ],
    "see_also": [
        {
            "name": "ALTEROPERATORFAMILY",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/ALTEROPERATORFAMILY/7/json"
        },
        {
            "name": "CREATEOPERATORFAMILY",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/CREATEOPERATORFAMILY/7/json"
        },
        {
            "name": "ALTEROPERATORCLASS",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/ALTEROPERATORCLASS/7/json"
        },
        {
            "name": "CREATEOPERATORCLASS",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/CREATEOPERATORCLASS/7/json"
        },
        {
            "name": "DROPOPERATORCLASS",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/DROPOPERATORCLASS/7/json"
        },
        {
            "name": "FAMILY",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/FAMILY/7/json"
        }
    ]
}