You can delete items from an encrypted index using delete():
# IDs of items to delete
ids_to_delete = ["item1", "item2", "item3"]
# Delete items from the encrypted index
index.delete(ids_to_delete)
// IDs of items to delete
const idsToDelete = ["item1", "item2", "item3"];
// Delete items from the encrypted index
await index.delete({ ids: idsToDelete });
import { DeleteParams } from 'cyborgdb';
// IDs of items to delete
const idsToDelete: string[] = ["item1", "item2", "item3"];
// Delete items from the encrypted index
const params: DeleteParams = { ids: idsToDelete };
await index.delete(params);
// IDs of items to delete
idsToDelete := []string{"item1", "item2", "item3"}
// Delete items from the encrypted index
err := index.Delete(context.Background(), idsToDelete)
if err != nil {
log.Fatal(err)
}
curl -X POST "http://localhost:8000/v1/vectors/delete" \
-H "X-API-Key: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"index_name": "my_index",
"index_key": "your_64_character_hex_key_here",
"ids": ["item1", "item2", "item3"]
}'
This operation is irreversible. Once you delete an item, you cannot recover it.
API Reference
For more information on deleting items from an encrypted index, refer to the API reference:
REST API Reference
REST API reference for /v1/vectors/delete
Python SDK Reference
API reference for delete() in Python
JS/TS SDK Reference
API reference for delete() in JavaScript/TypeScript
Go SDK Reference
API reference for Delete() in Go