index_object:drop() | Tarantool

index_object:drop()

object index_object
index_object:drop()

Drop an index. Dropping a primary-key index has a side effect: all tuples are deleted.

Parameters:
Return:

nil.

Possible errors:

  • index does not exist,
  • a primary-key index cannot be dropped while a secondary-key index exists.

Example:

tarantool> box.space.space55.index.primary:drop()
---
...
Found what you were looking for?
Feedback