Skip to main content
This action is irreversible. Proceed with caution.
Deletes the specified encrypted items stored in the index, including all its associated fields (vector, contents, metadata).
def delete(self, ids: List[str])

Parameters

ParameterTypeDescription
idsList[str]IDs to delete.

Exceptions

  • Throws if the items could not be deleted.

Example Usage

# Load index
index = client.load_index(index_name=index_name, index_key=index_key)

# Delete "item_1" and "item_2"
index.delete(["item_1", "item_2"])
I