Method DeleteAsync<TKey, TRecord>
- Namespace
- Oscova.Agents.Vector
- Assembly
- Oscova.Agents.dll
DeleteAsync<TKey, TRecord>(string, TKey, VectorStoreCollectionDefinition?)
Deletes one record from a vector collection.
public Task DeleteAsync<TKey, TRecord>(string collectionName, TKey key, VectorStoreCollectionDefinition? definition = null) where TKey : notnull where TRecord : classParameters
collectionNamestring-
The collection name containing the record.
keyTKey-
The key of the record to delete.
definitionVectorStoreCollectionDefinition?-
An optional collection definition used when opening the collection.
Returns
- Task
-
A task that completes when the delete operation finishes.
Type Parameters
TKey-
The record key type.
TRecord-
The vector record type.