Skip to content

SSH.SFTPSession.RemoveDirectory

Andrew Lambert edited this page Nov 26, 2022 · 5 revisions

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.

Clone this wiki locally