How to Run a Short Command Line to Delete Web Browsing History

By Gil David

To speed your daily browsing the web browser Internet Explorer saves your browsing information and history in local files on your hard disk. The files include recent websites you visited, data you entered in web forms, passwords you entered in web pages and temporary Internet files. You can clear the browsing history when you want to free space from your hard disk or when you want to keep your browsing activity private. Although Internet Explorer provides such option through its menu bar, you may prefer to use a command line for this task (when writing a script that runs when Windows starts up, for example).


Step 1

Open the "Command Prompt," the Windows application that enables running Windows commands and software applications, by clicking the Windows "Start" button, clicking "Programs," clicking "Accessories" and then clicking "Command Prompt."

Step 2

Type "RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1" in the command prompt to delete your browsing history from Internet Explorer.

Step 3

Type "RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8" in the command prompt to delete temporary Internet files from Internet Explorer.

Step 4

Type "RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2" in the command prompt to delete cookies from Internet Explorer.

Step 5

Type "RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 32" in the command prompt to delete your saved passwords from Internet Explorer.

Step 6

Type "RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16" in the command prompt to delete your web form information from Internet Explorer.

Type "RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255" in the command prompt to delete all of the above from Internet Explorer.