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 the iCloud Safari feature turned on, 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 and Website Data, then click the pop-up menu and 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
Cookies and website data saved while visiting webpages
Recent searches
Icons for open 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