title: Recursive remove directory using SFTP
body: <p>I use SFTP server for making database backup and all web site with it structure. I use bad script and now I make double duplicates on my SFTP server. I use <code>rmdir folder</code> but I get error:</p>
  
  <pre><code>Couldn't remove directory: Failure
  </code></pre>
  
  <p>If I understand right in SFTP I can remove directory just if it empty. And if I use <code>rm folder/*</code> I don't remove inner folders.</p>
  
  <p>How I can doit another way?</p>