Method DeleteFromMetadataAsync
DeleteFromMetadataAsync(string, MetadataCollection, CancellationToken)
Asynchronously deletes all vector entries from the specified collection that match the provided metadata filter.
Task DeleteFromMetadataAsync(string collectionIdentifier, MetadataCollection metadata, CancellationToken cancellationToken = default)
Parameters
collectionIdentifierstringThe name of the collection from which entries will be deleted.
metadataMetadataCollectionA collection of metadata key-value pairs that identifies the entries to be removed. Only entries whose metadata fully match these key-value pairs will be deleted.
cancellationTokenCancellationTokenAn optional token that can be used to cancel the asynchronous deletion operation.
Returns
- Task
A task representing the asynchronous deletion operation.
DeleteFromMetadataAsync(string, MetadataFilter, CancellationToken)
Asynchronously deletes all vector entries from the specified collection whose metadata satisfies the given filter expression.
Task DeleteFromMetadataAsync(string collectionIdentifier, MetadataFilter filter, CancellationToken cancellationToken = default)
Parameters
collectionIdentifierstringThe name of the collection from which entries will be deleted.
filterMetadataFilterThe filter expression to evaluate against each entry's metadata. Supports typed comparisons (eq, ne, gt, gte, lt, lte, in, nin, exists) combined with and/or; see MetadataFilter for the exact matching semantics. Must not be
null.cancellationTokenCancellationTokenAn optional token that can be used to cancel the asynchronous deletion operation.
Returns
- Task
A task representing the asynchronous deletion operation.