> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# DROP INDEX

> DROP INDEX removes a specified bitmap index from a table.

## 功能

删除指定表的某个 bitmap 索引。创建 bitmap 索引会占用额外的存储空间，所以不用的索引建议删除。删除索引后，存储空间会立即释放。

**Tip**

该操作需要对应表的 ALTER 权限。请参考 [GRANT](/documents/cn/4.2/sql-reference/sql-statements/account-management/GRANT.md) 为用户赋权。

## 语法

```SQL theme={null}
DROP INDEX index_name ON [db_name.]table_name
```

## 参数说明

| **参数** | **必选** | **说明** |
| - | - | - |
| index\_name | 是 | 要删除的索引名称。 |
| table\_name | 是 | 创建索引的表。 |
| db\_name | 否 | 表所属的数据库。 |

## 示例

例如为表 `sales_records` 中的 `item_id` 列创建位图索引，索引名称为 `index3`。

```SQL theme={null}
CREATE INDEX index3 ON sales_records (item_id);
```

删除表`sales_records`中的索引`index3`。

```SQL theme={null}
DROP INDEX index3 ON sales_records;
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.