SSH.SFTPSession.RemoveDirectory - charonn0/RB-libssh2 GitHub Wiki
SSH.SFTPSession.RemoveDirectory
Method Signature
Sub RemoveDirectory(DirectoryName As String, Recursive As Boolean = False)
Parameters
| Name | Type | Comment |
|---|---|---|
DirectoryName |
String | The name of the remote directory to delete. |
Recursive |
Boolean | Optional. If True then the directory and everything in it is deleted. This may take a long time if the directory is very large and/or deep. |
Remarks
Deletes the specified directory on the remote server using SFTP. If Recursive is False then the directory must already be empty.