PineconeVectorStoreRecordCollection<TRecord>.DeleteAsync Method

Definition

Deletes a record from the vector store. Does not guarantee that the collection exists.

public System.Threading.Tasks.Task DeleteAsync (string key, Microsoft.SemanticKernel.Data.DeleteRecordOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteAsync : string * Microsoft.SemanticKernel.Data.DeleteRecordOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.DeleteAsync : string * Microsoft.SemanticKernel.Data.DeleteRecordOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function DeleteAsync (key As String, Optional options As DeleteRecordOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

key
String

The unique id associated with the record to remove.

options
DeleteRecordOptions

Optional options for removing the record.

cancellationToken
CancellationToken

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

Returns

The unique identifier for the record.

Implements

Applies to