DeleteAsync(Object key, CancellationToken)
This method deletes a record from the vector store. It does not guarantee that the collection exists.
Declaration
// C#
public async Task DeleteAsync(Object key, CancellationToken cancellationToken = default);Parameters
keyThe unique key associated with the record to delete.
cancellationTokenThe cancellation token.
Return Value
A task representing the asynchronous operation that completes when the record is deleted.
Implements
Microsoft.Extensions.VectorData.VectorStoreCollection
Exceptions
VectorStoreException: The command fails to execute for any reason other than the absence of a record.
Remarks
Unlike OracleCollection, OracleDynamicColloection uses Object as TKey, and Dictionary<string, object?> as TRecord. Please make sure to use the correct parameter types.