AzureCosmosDBMongoDBMemoryStore.RemoveAsync Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Removes a memory record from the data store. Does not guarantee that the collection exists.

C#
public System.Threading.Tasks.Task RemoveAsync(string collectionName, string key, System.Threading.CancellationToken cancellationToken = default);

Parameters

collectionName
String

The name associated with a collection of embeddings.

key
String

The unique id associated with the memory record to remove.

cancellationToken
CancellationToken

The CancellationToken to monitor for cancellation requests. The default is None.

Returns

Implements

Applies to

Produkt Verze
Semantic Kernel Dotnet Latest