Compartilhar via


VectorStores.DeleteVectorStoreFile(String, String, CancellationToken) Method

Definition

Deletes a vector store file. This removes the file‐to‐store link (does not delete the file itself).

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

Parameters

vectorStoreId
String

Identifier of the vector store.

fileId
String

Identifier of the file.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

vectorStoreId or fileId is null.

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

Applies to