Using the Command Line to Delete IE7 / IE8 Browsing History

You can use the command line to delete the browsing history (cookies, internet files, history, form data, and/or passwords) from IE7 or IE8. These commands can come in handy if you want to create batch files to clear the browsing history.

Delete Temporary Internet Files
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8

Delete Cookies
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2

Delete History
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1

Delete Form Data
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16

Delete Passwords
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 32

Delete All
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255

Delete Files and Settings Stored by Add-Ons
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351


About Rob Rogers

Once a prolific author here on Tech-Recipes, Rob has moved on to greener pastures.
View more articles by Rob Rogers

The Conversation

Follow the reactions below and share your own thoughts.

5 Responses to “Using the Command Line to Delete IE7 / IE8 Browsing History”

  1. December 25, 2008 at 3:11 pm, slurpking said:

    What is the advantage of using the commands over the tools menu in IE7?


  2. April 16, 2009 at 1:22 pm, Kingsly said:

    it is not working


  3. June 04, 2009 at 1:12 am, ted said:

    to hell with deleting all this stuff – how do I get my url’s to stay so I can use the down arrow and just click on site I want and not have to type it all again?


  4. July 21, 2010 at 4:24 pm, Afds said:

    you guys are the dummest people ever. I guess you don’t know about the world of IT. Get a clue….IE 6 never had anything like this and when you want to delete history it was a pain. Now you can use a batch file to clear all this things in one file…


  5. November 26, 2012 at 9:49 am, Gh said:

    I was not able to delete some of the cookies stored in my system. This cmd line option worked like a Charm. Thanks Rob.


Leave a Reply