Recursively delete directory with JSch on SFTP with Java

For a recent project I needed a way to recursively delete a directory and all its content from a remote SFTP connection. This code snippet works like charm but be very careful when using it:

 

2 People think it's helpful 😀

Leave a Reply

Your email address will not be published. Required fields are marked *