Back to product page

DeleteFile method


Checks if remote dir exists.

Type

Void

Syntax

  • C#
  • VB.NET
public Void DeleteFile();

public Void DeleteFile(String RemoteFile);
The DeleteFile(RemoteFile) syntax has these parts:
RemoteFileFull path to file on remote server that should be deleted.

public Sub DeleteFile()

public Sub DeleteFile(ByVal RemoteFile As String)
The DeleteFile(RemoteFile) syntax has these parts:
RemoteFileFull path to file on remote server that should be deleted.

Remarks

This method will delete file on remote server, if possible. Once completed, Done event will be fired. If no error occurs, Args.Error argument in Done event will be set to null (Nothing in VB). If error occurred, Args.Error will contain description of the error.

No wildcards can be used for RemotePath argument. RFC protocol specification for FTP or SFTP does not allow them.

Do not forget that RemotePath should always specify full absolute path (i.e. /home/joe/something) instead of relative path (i.e. joe/something).

Platforms

Windows