Method DeleteFromMetadataAsync
DeleteFromMetadataAsync(string, MetadataCollection, CancellationToken)
Asynchronously deletes all vector entries from the specified collection that match the provided metadata filter.
public Task DeleteFromMetadataAsync(string collectionIdentifier, MetadataCollection metadata, CancellationToken cancellationToken = default)Parameters
- collectionIdentifierstring
- The name of the collection from which entries will be deleted. 
- metadataMetadataCollection
- A 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. 
- cancellationTokenCancellationToken
- An optional token that can be used to cancel the asynchronous deletion operation. 
Returns
- Task
- A task representing the asynchronous deletion operation.