QdrantVectorStoreRecordCollection<TRecord>.DeleteBatchAsync 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.
Overloads
DeleteBatchAsync(IEnumerable<UInt64>, DeleteRecordOptions, CancellationToken) |
Deletes a batch of records from the vector store. Does not guarantee that the collection exists. Deletes will be made in a single request or in a single parallel batch depending on the available store functionality. If a record is not found, it will be ignored and the batch will succeed. If any record cannot be deleted for any other reason, the operation will throw. Some records may have already been deleted, while others may not, so the entire operation should be retried. |
DeleteBatchAsync(IEnumerable<Guid>, DeleteRecordOptions, CancellationToken) |
Deletes a batch of records from the vector store. Does not guarantee that the collection exists. Deletes will be made in a single request or in a single parallel batch depending on the available store functionality. If a record is not found, it will be ignored and the batch will succeed. If any record cannot be deleted for any other reason, the operation will throw. Some records may have already been deleted, while others may not, so the entire operation should be retried. |
DeleteBatchAsync(IEnumerable<UInt64>, DeleteRecordOptions, CancellationToken)
Deletes a batch of records from the vector store. Does not guarantee that the collection exists. Deletes will be made in a single request or in a single parallel batch depending on the available store functionality. If a record is not found, it will be ignored and the batch will succeed. If any record cannot be deleted for any other reason, the operation will throw. Some records may have already been deleted, while others may not, so the entire operation should be retried.
public System.Threading.Tasks.Task DeleteBatchAsync (System.Collections.Generic.IEnumerable<ulong> keys, Microsoft.SemanticKernel.Data.DeleteRecordOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteBatchAsync : seq<uint64> * Microsoft.SemanticKernel.Data.DeleteRecordOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.DeleteBatchAsync : seq<uint64> * Microsoft.SemanticKernel.Data.DeleteRecordOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function DeleteBatchAsync (keys As IEnumerable(Of ULong), Optional options As DeleteRecordOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- keys
- IEnumerable<UInt64>
The unique ids associated with the records to remove.
- options
- DeleteRecordOptions
Optional options for removing the records.
- cancellationToken
- CancellationToken
The CancellationToken to monitor for cancellation requests. The default is None.
Returns
A Task that completes when the records have been deleted.
Implements
Applies to
DeleteBatchAsync(IEnumerable<Guid>, DeleteRecordOptions, CancellationToken)
Deletes a batch of records from the vector store. Does not guarantee that the collection exists. Deletes will be made in a single request or in a single parallel batch depending on the available store functionality. If a record is not found, it will be ignored and the batch will succeed. If any record cannot be deleted for any other reason, the operation will throw. Some records may have already been deleted, while others may not, so the entire operation should be retried.
public System.Threading.Tasks.Task DeleteBatchAsync (System.Collections.Generic.IEnumerable<Guid> keys, Microsoft.SemanticKernel.Data.DeleteRecordOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteBatchAsync : seq<Guid> * Microsoft.SemanticKernel.Data.DeleteRecordOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.DeleteBatchAsync : seq<Guid> * Microsoft.SemanticKernel.Data.DeleteRecordOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function DeleteBatchAsync (keys As IEnumerable(Of Guid), Optional options As DeleteRecordOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- keys
- IEnumerable<Guid>
The unique ids associated with the records to remove.
- options
- DeleteRecordOptions
Optional options for removing the records.
- cancellationToken
- CancellationToken
The CancellationToken to monitor for cancellation requests. The default is None.
Returns
A Task that completes when the records have been deleted.