Skip to main content
Removes vectors from the index by their IDs. This operation permanently deletes the specified vectors and their associated data.
index.delete(ids)

Parameters

ParameterTypeDefaultDescription
idsList[str]-List of vector IDs to delete

Returns

None

Exceptions

  • Throws if the API request fails due to network connectivity issues.
  • Throws if authentication fails (invalid API key).
  • Throws if the encryption key is invalid for the specified index.
  • Throws if there are internal server errors preventing the deletion.
  • Throws if the ids parameter is null, undefined, or empty.
  • Throws if any of the provided IDs are invalid format.

Example Usage

# Delete vectors by ID
vector_ids = ['doc1', 'doc2', 'doc3']
index.delete(vector_ids)