RemoveDirectory Method
Remove a directory specified by DirName from an SFTP server.
Syntax
[VB.NET] Public Sub RemoveDirectory(ByVal DirName As String)
[C#] public void RemoveDirectory(string dirName);
Remarks
A directory with path specified by DirName is deleted on the SFTP server. DirName is either an absolute path on the server, or a path relative to RemotePath.
If there is no SSH session in place, one is automatically created by first.
NOTE: This method has a corresponding asynchronous version (RemoveDirectoryAsync) for use in the WinRT environment.