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

Parameters

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.
  • Returns 422 from the server if ids is not an array of strings.

Returns

Promise<DeleteResponse>: A Promise that resolves to a response object containing the operation status, message, and count of deleted vectors. See the DeleteResponse type for more details.

Example Usage