Partager via


QdrantVectorStoreRecordCollection<TRecord>.DeleteAsync Method

Definition

Overloads

DeleteAsync(Guid, DeleteRecordOptions, CancellationToken)

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

DeleteAsync(UInt64, DeleteRecordOptions, CancellationToken)

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

DeleteAsync(Guid, DeleteRecordOptions, CancellationToken)

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

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

Parameters

key
Guid

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

DeleteAsync(UInt64, DeleteRecordOptions, CancellationToken)

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

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

Parameters

key
UInt64

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