Compartilhar via


VectorStores.DeleteVectorStoreAsync(String, CancellationToken) Method

Definition

Deletes the vector store object matching the specified ID.

public virtual System.Threading.Tasks.Task<Azure.Response<bool>> DeleteVectorStoreAsync(string vectorStoreId, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteVectorStoreAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<bool>>
override this.DeleteVectorStoreAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<bool>>
Public Overridable Function DeleteVectorStoreAsync (vectorStoreId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of Boolean))

Parameters

vectorStoreId
String

Identifier of the vector store.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

vectorStoreId is null.

vectorStoreId is an empty string, and was expected to be non-empty.

Applies to