Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drop index #221

Merged
merged 1 commit into from
Nov 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
15 changes: 15 additions & 0 deletions docs-2.0/3.ngql-guide/14.index-statements/6.drop-index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# DROP INDEX

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

The `DROP INDEX` statement drops an existing index from the current graph space. Dropping a nonexistent index results in an error. You can use the `IF EXISTS` option to conditionally drop the index and avoid the error. To run this statement you need some privilege. For information about the built-in roles in Nebula Graph, see [Built-in roles](TODO) (TODO).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"drop" is more like a jargon, so maybe use "delete"


## Example

```ngql
nebula> DROP TAG INDEX player_index_0;
```

This query drops a tag index names `player_index_0`.