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:


0 Noone thinks it's helpful 🙁

Leave a Reply

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