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