How to clear your Internet Explorer (version 7) cache from the command line

Step-by-step instructions for clearing the Internet Explorer (version 7) cache using the command line

Published: Nov 28, 2007
Updated: Feb 26, 2020
1 minute read
We may earn from vendors via affiliate links or sponsorships. This might affect product placement on our site, but not the content of our reviews. See our Terms of Use for details.

It seem that all I want to do these days is work from the command line and keep my mouse from working. The less I have to use my mouse, the happier it makes me. I wanted to share with you how to delete IE cache from the command line. Follow these simple steps.

Normally, you have to open IE and choose Tools | Delete Browsing History | Delete All…

Another way would be to open the command line and type the following commands:

  • RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255 (Deletes ALL History)
  • RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1 (Deletes History Only)
  • RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2 (Deletes Cookies Only)
  • RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8 (Deletes Temporary Internet Files Only)
  • RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16 (Deletes Form Data Only)
  • RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 32 (Deletes Password History Only)

It works great; I even put together a quick video for your enjoyment.

Steven S. Warren

Steven S. Warren lives in sunny Florida. His articles and blogs have appeared on websites such as CIO Update, DevX, TechRepublic, SearchTechTarget, Datamation and DatabaseJournal. With more than 15 years of experience writing about…