TextMemoryPlugin.RemoveAsync(String, String, CancellationToken) Method

Definition

Remove specific memory

[Microsoft.SemanticKernel.KernelFunction]
public System.Threading.Tasks.Task RemoveAsync(string key, string collection = "generic", System.Threading.CancellationToken cancellationToken = default);
[<Microsoft.SemanticKernel.KernelFunction>]
member this.RemoveAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function RemoveAsync (key As String, Optional collection As String = "generic", Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

key
String

The key associated with the information to save

collection
String

Memories collection associated with the information to save

cancellationToken
CancellationToken

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

Returns

Attributes

Applies to