IOpenAIClient.DeleteVectorStoreFileAsync

IOpenAIClient.DeleteVectorStoreFileAsync method

Deletes a file within a vector store asynchronously.

public Task<DeleteStatusResponse> DeleteVectorStoreFileAsync(string vectorStoreId, string fileId, 
    CancellationToken? cancellationToken = default)
ParameterTypeDescription
vectorStoreIdStringThe ID of the vector store containing the file to delete.
fileIdStringThe ID of the file to delete.
cancellationTokenNullable`1A token to cancel the operation.

Return Value

A task that represents the asynchronous operation. The task result contains the status of the delete operation.

Exceptions

exceptioncondition
AIClientExceptionThrown when the vector store Id is null or empty.
AIClientExceptionThrown when the file Id is null or empty.

See Also