Partager via


AgentsClient.DeleteVectorStoreAsync Method

Definition

Overloads

DeleteVectorStoreAsync(String, RequestContext)

[Protocol Method] Deletes the vector store object matching the specified ID.

DeleteVectorStoreAsync(String, CancellationToken)

Deletes the vector store object matching the specified ID.

DeleteVectorStoreAsync(String, RequestContext)

Source:
AgentsClient.cs

[Protocol Method] Deletes the vector store object matching the specified ID.

public virtual System.Threading.Tasks.Task<Azure.Response> DeleteVectorStoreAsync (string vectorStoreId, Azure.RequestContext context);
abstract member DeleteVectorStoreAsync : string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.DeleteVectorStoreAsync : string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function DeleteVectorStoreAsync (vectorStoreId As String, context As RequestContext) As Task(Of Response)

Parameters

vectorStoreId
String

Identifier of the vector store.

context
RequestContext

The request context, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The response returned from the service.

Exceptions

vectorStoreId is null.

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

Service returned a non-success status code.

Applies to

DeleteVectorStoreAsync(String, CancellationToken)

Source:
AgentsClient.cs

Deletes the vector store object matching the specified ID.

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

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