You can remove all records that Safari keeps of where you’ve browsed during a period of time you choose. If your Mac and your other devices have Safari turned on in iCloud preferences, your browsing history is removed from all of them. Clearing your browsing history in Safari doesn’t clear any browsing histories kept independently by websites you visited.
Choose History > Clear History, click the pop-up menu, then choose how far back you want your browsing history cleared.
When you clear your history, Safari removes data it saves as a result of your browsing, including:
History of webpages you visited
The back and forward list for open webpages
Top Sites that aren’t marked as permanent
Frequently visited site list
Recent searches
Icons for webpages
Snapshots saved for open webpages
List of items you downloaded (downloaded files aren’t removed)
Websites added for Quick Website Search
Websites that asked to use your location
Websites that asked to send you notifications
Websites with plug-in content you started by clicking a Safari Power Saver notice
Responses to requests to let websites use WebGL