FtpClient.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.
Delete file
public virtual System.Threading.Tasks.Task DeleteFileAsync(string file, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteFileAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.DeleteFileAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function DeleteFileAsync (file As String, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- file
- String
File
- cancellationToken
- CancellationToken
Cancellation token.
Returns
Remarks
This operation deletes a file.