Compartir a través de


AzureCosmosDBNoSQLVectorStoreRecordCollection<TRecord>.DeleteAsync Method

Definition

Overloads

DeleteAsync(AzureCosmosDBNoSQLCompositeKey, CancellationToken)

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

public virtual System.Threading.Tasks.Task DeleteAsync(Microsoft.SemanticKernel.Connectors.AzureCosmosDBNoSQL.AzureCosmosDBNoSQLCompositeKey key, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteAsync : Microsoft.SemanticKernel.Connectors.AzureCosmosDBNoSQL.AzureCosmosDBNoSQLCompositeKey * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.DeleteAsync : Microsoft.SemanticKernel.Connectors.AzureCosmosDBNoSQL.AzureCosmosDBNoSQLCompositeKey * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function DeleteAsync (key As AzureCosmosDBNoSQLCompositeKey, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

cancellationToken
CancellationToken

Returns

Implements

Applies to

DeleteAsync(String, CancellationToken)

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

public virtual System.Threading.Tasks.Task DeleteAsync(string key, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.DeleteAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function DeleteAsync (key As String, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

key
String
cancellationToken
CancellationToken

Returns

Implements

Applies to