Updated at July 17, 2026 02:08 PM
index_object:delete()
index_object
Delete a tuple identified by a key.
Same as box.space...delete(), but key is searched in this index instead of in the primary-key index. This index ought to be unique.
Parameters:
-
index_object(index_object) — an object reference. -
key(scalar/table) — values to be matched against the index key
Returns
the deleted tuple.
Return type
tuple
Note regarding storage engine: vinyl will return [nil]{.title-ref}, rather than the deleted tuple.