title: Delete files that are older than 7 days
body: <p>I have seen some posts to delete all the files (not folders) in a specific folder, but I simply don't understand them.</p>
  
  <p>I need to use a UNC path and delete all the files that are older than 7 days.</p>
  
  <pre><code> Mypath = \\files\data\APIArchiveFolder\
  </code></pre>
  
  <p>Does someone have  quick script that they can specifically input the path above into that would delete all files older than 7 days?</p>