{
    "content": [
        {
            "type": "text",
            "text": "# DROP_OPERATOR (man)\n\n## NAME\n\nDROPOPERATOR - remove an operator\n\n## SYNOPSIS\n\nDROP OPERATOR [ IF EXISTS ] name ( { lefttype | NONE } , righttype ) [, ...] [ CASCADE | RESTRICT ]\n\n## DESCRIPTION\n\nDROP OPERATOR drops an existing operator from the database system. To execute this command\nyou must be the owner of the operator.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **PARAMETERS**\n- **EXAMPLES**\n- **COMPATIBILITY**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "DROP_OPERATOR",
        "section": "",
        "mode": "man",
        "summary": "DROPOPERATOR - remove an operator",
        "synopsis": "DROP OPERATOR [ IF EXISTS ] name ( { lefttype | NONE } , righttype ) [, ...] [ CASCADE | RESTRICT ]",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [
            "Remove the power operator a^b for type integer:",
            "DROP OPERATOR ^ (integer, integer);",
            "Remove the bitwise-complement prefix operator ~b for type bit:",
            "DROP OPERATOR ~ (none, bit);",
            "Remove multiple operators in one command:",
            "DROP OPERATOR ~ (none, bit), ^ (integer, integer);"
        ],
        "see_also": [
            {
                "name": "CREATEOPERATOR",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/CREATEOPERATOR/7/json"
            },
            {
                "name": "ALTEROPERATOR",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/ALTEROPERATOR/7/json"
            },
            {
                "name": "OPERATOR",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/OPERATOR/7/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "PARAMETERS",
                "lines": 20,
                "subsections": []
            },
            {
                "name": "EXAMPLES",
                "lines": 12,
                "subsections": []
            },
            {
                "name": "COMPATIBILITY",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "DROPOPERATOR - remove an operator\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "DROP OPERATOR [ IF EXISTS ] name ( { lefttype | NONE } , righttype ) [, ...] [ CASCADE | RESTRICT ]\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "DROP OPERATOR drops an existing operator from the database system. To execute this command\nyou must be the owner of the operator.\n",
                "subsections": []
            },
            "PARAMETERS": {
                "content": "IF EXISTS\nDo not throw an error if the operator does not exist. A notice is issued in this case.\n\nname\nThe name (optionally schema-qualified) of an existing operator.\n\nlefttype\nThe data type of the operator's left operand; write NONE if the operator has no left\noperand.\n\nrighttype\nThe data type of the operator's right operand.\n\nCASCADE\nAutomatically drop objects that depend on the operator (such as views using it), and in\nturn all objects that depend on those objects (see Section 5.14).\n\nRESTRICT\nRefuse to drop the operator if any objects depend on it. This is the default.\n",
                "subsections": []
            },
            "EXAMPLES": {
                "content": "Remove the power operator a^b for type integer:\n\nDROP OPERATOR ^ (integer, integer);\n\nRemove the bitwise-complement prefix operator ~b for type bit:\n\nDROP OPERATOR ~ (none, bit);\n\nRemove multiple operators in one command:\n\nDROP OPERATOR ~ (none, bit), ^ (integer, integer);\n",
                "subsections": []
            },
            "COMPATIBILITY": {
                "content": "There is no DROP OPERATOR statement in the SQL standard.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "CREATE OPERATOR (CREATEOPERATOR(7)), ALTER OPERATOR (ALTEROPERATOR(7))\n\n\n\nPostgreSQL 14.23                                2026                                DROP OPERATOR(7)",
                "subsections": []
            }
        }
    }
}