Tarantool CE/EE Documentation portal logo
Support
Updated at July 17, 2026   02:08 PM

index_object:drop()

index_object

drop()

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

Parameters:

Returns

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()---...