Safari/Preferences/General tab.
Change "Remove history items" to the shortest interval.
"After one day" may fit your needs.
If you don't want to keep ANY history, use the Private Browsing... mode, under the Safari menu. Safari will then not remember much of anything about where you browse.
(Try to stay away from the sites that the NSA monitors
Be careful out there!)