Deletes file from SFTP server.

Namespace: Jscape.Sftp
Assembly: Jscape.Ssh (in Jscape.Ssh.dll) Version: 2.7.2.0

Syntax

C#
public void DeleteFile(
	string pathname
)
Visual Basic
Public Sub DeleteFile ( _
	pathname As String _
)
Visual C++
public:
void DeleteFile(
	String^ pathname
)

Parameters

pathname
Type: System..::..String
the pathname to delete

Exceptions

ExceptionCondition
Jscape.Sftp..::..SftpExceptionif protocol error occurs

See Also