title: Powershell script to delete temporary internet files
body: <p>I'm trying to delete the files of extension ".htm" in the temporary internet files (TIF) folder using powershell. But couldn't get far on this.</p>
  
  <p>Below is the script I have. I noticed that the cache name in the TIF folder is different from the display full name. (I tried to write a C# program to do this, but that doesn't work either)</p>
  
  <pre><code>get-childitem "c:\Documents and Settings\sanjeev-nithyanandam\Local Settings\Temporary Internet Files\*" -include *.htm -recurse -force | foreach ($_) {remove-item $_.fullname -force}
  </code></pre>
  
  <p>I learned from this post <a href="https://stackoverflow.com/questions/2388395/temporary-internet-files-folder-on-windows">&quot;Temporary Internet Files&quot; folder on Windows</a> that TIF folder behave differently than the other folders.</p>
  
  <p>Is there a work around to modify the PS script and delete the files?</p>
  
  <p>Any help is appreciated.</p>
  
  <p>Thanks!
  Sanjeev</p>