Otter SDK Reference
Version:

DeleteFileAsync(IFileOperationsExecuter agent, string fileName) Method

Deletes the specified file if it exists.

Syntax

public static System.Threading.Tasks.Task DeleteFileAsync(IFileOperationsExecuter agent, string fileName)

Parameters

agent
Type: IFileOperationsExecuter

The agent.

fileName
Type: string

The name of the file to delete.