OpenAIClientExtensions.DeleteVectorStoreAsync Method

Definition

Deletes a vector store asynchronously.

public static System.Threading.Tasks.Task<bool> DeleteVectorStoreAsync(this OpenAI.OpenAIClient client, string vectorStoreId, System.Threading.CancellationToken cancellationToken = default);
static member DeleteVectorStoreAsync : OpenAI.OpenAIClient * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
<Extension()>
Public Function DeleteVectorStoreAsync (client As OpenAIClient, vectorStoreId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Boolean)

Parameters

client
OpenAI.OpenAIClient

The OpenAI client instance.

vectorStoreId
String

The identifier of the vector store to delete.

cancellationToken
CancellationToken

The cancellation token to monitor for cancellation requests.

Returns

A boolean indicating whether the vector store was successfully deleted.

Applies to