Deleting a remote directory |
You can delete a remote directory on the server using the Sftp.DeleteDir method. The directory deleted is relative to your current remote directory.
Example
[C#]
// delete remote directory named testsftp
sftp.DeleteDir("testsftp");
[VB]
' delete remote directory named testsftp
sftp.DeleteDir("testsftp")
See also