title: In PHP how do I recursively remove all folders that aren't empty?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3338123/how-do-i-recursively-delete-a-directory-and-its-entire-contents-filessub-dirs">How do I recursively delete a directory and its entire contents (files+sub dirs) in PHP?</a>  </p>
  </blockquote>
  
  
  
  <p>I need to recursively delete a directory and subdirectories that aren't empty. I can't find any useful class or function to solve this problem.</p>
  
  <p>In advance thanks for your answers.</p>