Does anybody know how to remove remote directory via sftp?
sftp doesn't support "rm -r" only "rm", so the only way I see is to save remote folder tree in a file with "rm" prefix and then execute sftp -b file
And as sftp doesn't support "ls -lR" either I have to use "ls -l" in the loop to create such a file.
Is there an easier way? Thanks in advance.