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.

  • slurpking

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

  • Kingsly

    it is not working

  • ted

    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?

  • Afds

    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…

  • Gh

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