{
    "content": [
        {
            "type": "text",
            "text": "# DROP_SEQUENCE (man)\n\n## NAME\n\nDROPSEQUENCE - remove a sequence\n\n## SYNOPSIS\n\nDROP SEQUENCE [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]\n\n## DESCRIPTION\n\nDROP SEQUENCE removes sequence number generators. A sequence can only be dropped by its owner\nor a superuser.\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_SEQUENCE",
        "section": "",
        "mode": "man",
        "summary": "DROPSEQUENCE - remove a sequence",
        "synopsis": "DROP SEQUENCE [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [
            "To remove the sequence serial:",
            "DROP SEQUENCE serial;"
        ],
        "see_also": [
            {
                "name": "CREATESEQUENCE",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/CREATESEQUENCE/7/json"
            },
            {
                "name": "ALTERSEQUENCE",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/ALTERSEQUENCE/7/json"
            },
            {
                "name": "SEQUENCE",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/SEQUENCE/7/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "PARAMETERS",
                "lines": 13,
                "subsections": []
            },
            {
                "name": "EXAMPLES",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "COMPATIBILITY",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "DROPSEQUENCE - remove a sequence\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "DROP SEQUENCE [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "DROP SEQUENCE removes sequence number generators. A sequence can only be dropped by its owner\nor a superuser.\n",
                "subsections": []
            },
            "PARAMETERS": {
                "content": "IF EXISTS\nDo not throw an error if the sequence does not exist. A notice is issued in this case.\n\nname\nThe name (optionally schema-qualified) of a sequence.\n\nCASCADE\nAutomatically drop objects that depend on the sequence, and in turn all objects that\ndepend on those objects (see Section 5.14).\n\nRESTRICT\nRefuse to drop the sequence if any objects depend on it. This is the default.\n",
                "subsections": []
            },
            "EXAMPLES": {
                "content": "To remove the sequence serial:\n\nDROP SEQUENCE serial;\n",
                "subsections": []
            },
            "COMPATIBILITY": {
                "content": "DROP SEQUENCE conforms to the SQL standard, except that the standard only allows one sequence\nto be dropped per command, and apart from the IF EXISTS option, which is a PostgreSQL\nextension.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "CREATE SEQUENCE (CREATESEQUENCE(7)), ALTER SEQUENCE (ALTERSEQUENCE(7))\n\n\n\nPostgreSQL 14.23                                2026                                DROP SEQUENCE(7)",
                "subsections": []
            }
        }
    }
}