OpenAIFileService.DeleteFileAsync(String, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Remove a previously uploaded file.
public System.Threading.Tasks.Task DeleteFileAsync (string id, System.Threading.CancellationToken cancellationToken = default);
member this.DeleteFileAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function DeleteFileAsync (id As String, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- id
- String
The uploaded file identifier.
- cancellationToken
- CancellationToken
The CancellationToken to monitor for cancellation requests. The default is None.