title: del /q not able to delete locked files
body: <p>I want to delete a log folder and all its content frequently. But when I run</p>
  
  <pre><code>del /q &lt;&lt;'folder name'&gt;&gt;
  </code></pre>
  
  <p>I get an error</p>
  
  <blockquote>
    <p>The process cannot access the file because it is being used by another process</p>
  </blockquote>
  
  <p>I tried <code>rd</code>, <code>rmdir</code>, <code>/F</code> option but all of them gives the same error. How do I delete the folder and its content?</p>