vector, contents, metadata).
Parameters
| Parameter | Type | Description |
|---|---|---|
ids | List[str] | IDs to delete. |
index_key | bytes | (Optional, keyword-only) Override the per-operation index key. See Per-operation key override. |
user_id | bytes | (Optional, keyword-only) 16-byte RBAC user identifier. See Per-operation key override. |
Exceptions
RuntimeError
RuntimeError
- Throws if the items could not be deleted.
Example Usage
Per-operation key override
The call above reuses the key supplied atcreate_index() / load_index(). You may instead pass index_key= (and user_id= for an RBAC user) to override the per-operation key. This is required in stateless/service deployments that reload the index per request:
Deleting items requires write permission. An RBAC user without a write wrap cannot delete items.