title: What is the best and the fastest way to delete large directory containing thousands of files (in ubuntu)
body: <p>As I know the commands like</p>
  
  <pre><code>find &lt;dir&gt; -type f -exec rm {} \;
  </code></pre>
  
  <p>are not the best variant to remove large amount of files (total files, including subfolder). It works good if you have small amount of files, but if you have 10+ mlns files in subfolders, it can hang a server.</p>
  
  <p>Does anyone know any specific linux commands to solve this problem?</p>