Table of Contents

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 : class

Parameters

collectionName string

The collection name to delete.

definition VectorStoreCollectionDefinition

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.