Here’s the dialog that you are probably used to seeing:
And here’s the commands that correspond to the different buttons. The most important one from a cleanup perspective is the first, which will delete just the temporary internet files that are cluttering up your computer.
To use these commands, just run them from the command line, the start menu search box in vista, or a batch file.
Temporary Internet Files
Cookies
History
Form Data
Passwords
Delete All
Delete All – “Also delete files and settings stored by add-ons”
These commands should work in Internet Explorer 7 on XP or on Windows Vista.