Want to clear your history automatically when you exit windows 7, there is a way to do it,
1. Press Windows logo button + R
2. Type "gpedit.msc" and press enter
3. Go to User Configuration > Administrative Templates > Start menu and Task Bar and on the right pane go to the second option "Clear history............" and double click on it.
4. Click on enabled and click OK. That's All!