Back to product page

DeleteFile method


Deletes file on the server.

Type

Void

Syntax

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

public Void DeleteFile(String RemotePath);
The DeleteFile(RemotePath) syntax has these parts:
RemotePathFull path to file that should be deleted.

public Sub DeleteFile()

public Sub DeleteFile(ByVal RemotePath As String)
The DeleteFile(RemotePath) syntax has these parts:
RemotePathFull path to file 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, Error argument in Done event will be set to null. If error occurred, Error will hold description for the error.

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

Platforms

Windows