Tarantool CE/EE Documentation portal logo
Support
Updated at September 7, 2026   01:25 PM

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:

  • index_object (index_object) — an object

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