Skip to content

DROP INDEX

DROP INDEX removes an existing index from the current graph space.

Prerequisite

Running the DROP INDEX statement requires some privileges of DROP TAG INDEX and DROP EDGE INDEX in the given graph space. Otherwise, NebulaGraph throws an error.

Syntax

DROP {TAG | EDGE} INDEX [IF EXISTS] <index_name>;

IF NOT EXISTS: Detects whether the index that you want to drop exists. If it exists, it will be dropped.

Example

nebula> DROP TAG INDEX player_index_0;

Last update: March 13, 2023