Table of Contents

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

Parameters

collectionName string

The collection name containing the record.

key TKey

The key of the record to delete.

definition VectorStoreCollectionDefinition?

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.