title: how to make a bat file to delete all hidden and non hidden files from a folder
body: <p>My question is how to make a bat file that deletes all files, hidden and non hidden from a folder, this is my script so far:</p>
  
  <pre><code>cd "C:\Users\%USERNAME%\Documents"
  del . /Q
  </code></pre>
  
  <p>the problem is that it only deletes the visible files, not the ones hidden.</p>
  
  <p>could someone please contribute a script that will delete both hidden AND standard visible files, I would prefer this script to be in    </p>
  
  <pre><code>.bat
  </code></pre>
  
  <p>Thanks</p>