Remove Browsing History, Cookies, and Caches in Safari on macOS
To remove your browsing history, cookies, caches, and other website data from Safari on your Mac and across any synchronized devices: You can also clear all history by selecting History > Clear History. You have the same options here: the last hour, today, today and yesterday, and all history. There is no confirmation, and the deletion is immediate. From here, you also have options to view all history or to view history by specific days.
Clear Data (But Not History) for Specific Sites in Safari
Clearing data does not remove sites from your browsing history. You may want to clear your history in addition to deleting certain sites’ data.
Clear Private Data, Empty Caches, and Remove Cookies in Safari for iOS
To delete all Safari history entries, cookies, and data websites using your iOS mobile device:
View Sites and Selectively Delete Data on iOS Devices
To delete Safari history for a specific website on your iOS mobile device: