DeleteFile Method
Remove a file specified by FileName from an FTP server.
Syntax
[VB.NET] Public Sub DeleteFile(ByVal FileName As String)
[C#] public void DeleteFile(string fileName);
Remarks
This method is used to remove a file specified by FileName from an FTP server. The remote file or directory specified by FileName is deleted. FileName is either an absolute path on the server, or a path relative to RemotePath. If there is no FTP session in place, one is automatically created by first calling the Logon method.