Method DeleteCollectionAsync<TKey, TRecord>
- Namespace
- Oscova.Agents.Vector
- Assembly
- Oscova.Agents.dll
DeleteCollectionAsync<TKey, TRecord>(string, VectorStoreCollectionDefinition)
Deletes a vector collection if it exists.
public Task DeleteCollectionAsync<TKey, TRecord>(string collectionName, VectorStoreCollectionDefinition definition) where TKey : notnull where TRecord : classParameters
collectionNamestring-
The collection name to delete.
definitionVectorStoreCollectionDefinition-
The collection definition used to identify vector shadow tables.
Returns
- Task
-
A task that completes when deletion has been requested.
Type Parameters
TKey-
The record key type.
TRecord-
The vector record type.