{
    "content": [
        {
            "type": "text",
            "text": "# drop_index (man)\n\n## NAME\n\nDROPINDEX - remove an index\n\n## SYNOPSIS\n\nDROP INDEX [ CONCURRENTLY ] [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]\n\n## DESCRIPTION\n\nDROP INDEX drops an existing index from the database system. To execute this command you must\nbe the owner of the index.\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_index",
        "section": "",
        "mode": "man",
        "summary": "DROPINDEX - remove an index",
        "synopsis": "DROP INDEX [ CONCURRENTLY ] [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [
            "This command will remove the index titleidx:",
            "DROP INDEX titleidx;"
        ],
        "see_also": [
            {
                "name": "CREATEINDEX",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/CREATEINDEX/7/json"
            },
            {
                "name": "INDEX",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/INDEX/7/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "PARAMETERS",
                "lines": 28,
                "subsections": []
            },
            {
                "name": "EXAMPLES",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "COMPATIBILITY",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "DROPINDEX - remove an index\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "DROP INDEX [ CONCURRENTLY ] [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "DROP INDEX drops an existing index from the database system. To execute this command you must\nbe the owner of the index.\n",
                "subsections": []
            },
            "PARAMETERS": {
                "content": "CONCURRENTLY\nDrop the index without locking out concurrent selects, inserts, updates, and deletes on\nthe index's table. A normal DROP INDEX acquires an ACCESS EXCLUSIVE lock on the table,\nblocking other accesses until the index drop can be completed. With this option, the\ncommand instead waits until conflicting transactions have completed.\n\nThere are several caveats to be aware of when using this option. Only one index name can\nbe specified, and the CASCADE option is not supported. (Thus, an index that supports a\nUNIQUE or PRIMARY KEY constraint cannot be dropped this way.) Also, regular DROP INDEX\ncommands can be performed within a transaction block, but DROP INDEX CONCURRENTLY cannot.\nLastly, indexes on partitioned tables cannot be dropped using this option.\n\nFor temporary tables, DROP INDEX is always non-concurrent, as no other session can access\nthem, and non-concurrent index drop is cheaper.\n\nIF EXISTS\nDo not throw an error if the index does not exist. A notice is issued in this case.\n\nname\nThe name (optionally schema-qualified) of an index to remove.\n\nCASCADE\nAutomatically drop objects that depend on the index, and in turn all objects that depend\non those objects (see Section 5.14).\n\nRESTRICT\nRefuse to drop the index if any objects depend on it. This is the default.\n",
                "subsections": []
            },
            "EXAMPLES": {
                "content": "This command will remove the index titleidx:\n\nDROP INDEX titleidx;\n",
                "subsections": []
            },
            "COMPATIBILITY": {
                "content": "DROP INDEX is a PostgreSQL language extension. There are no provisions for indexes in the SQL\nstandard.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "CREATE INDEX (CREATEINDEX(7))\n\n\n\nPostgreSQL 14.23                                2026                                   DROP INDEX(7)",
                "subsections": []
            }
        }
    }
}