Freigeben über


AssistantsClient.DeleteFileAsync(String, CancellationToken) Method

Definition

Delete a previously uploaded file.

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

Parameters

fileId
String

The ID of the file to delete.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

fileId is null.

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

Applies to