Resetting Safari 12.1.1 in High Sierra

From time to time I reset Safari, but now in High Sierra it doesn't clear History and there is no welcome message like when you use it for the first time. I've been using either of these lines of commands in Terminal and I'm wondering if High Sierra needs a different set of commands, or maybe I am mistaken and there is no welcome message in Safari 12.1.1


Any help or comments greatly appreciated


rm -rf ~/Library/Safari/;rm -rf ~/Library/Saved\ Application\ State/com.apple.Safari*;rm -rf ~/Library/Caches/com.apple.Safari*;rm -rf ~/Library/Cookies/com.apple.Safari*;rm -rf ~/Library/Preferences/com.apple.Safari*


OR


mv ~/Library/Safari ~/Desktop/Safari-`date +%Y%m%d%H%M%S`; \

rm -Rf ~/Library/Caches/Apple\ -\ Safari\ -\ Safari\ Extensions\ Gallery; \

rm -Rf ~/Library/Caches/Metadata/Safari; \

rm -Rf ~/Library/Caches/com.apple.Safari; \

rm -Rf ~/Library/Caches/com.apple.WebKit.PluginProcess; \

rm -Rf ~/Library/Cookies/Cookies.binarycookies; \

rm -Rf ~/Library/Preferences/Apple\ -\ Safari\ -\ Safari\ Extensions\ Gallery; \

rm -Rf ~/Library/Preferences/com.apple.Safari.LSSharedFileList.plist; \

rm -Rf ~/Library/Preferences/com.apple.Safari.RSS.plist; \

rm -Rf ~/Library/Preferences/com.apple.Safari.plist; \

rm -Rf ~/Library/Preferences/com.apple.WebFoundation.plist; \

rm -Rf ~/Library/Preferences/com.apple.WebKit.PluginHost.plist; \

rm -Rf ~/Library/Preferences/com.apple.WebKit.PluginProcess.plist; \

rm -Rf ~/Library/PubSub/Database; \

rm -Rf ~/Library/Saved\ Application\ State/com.apple.Safari.savedState



iMac Line (2012 and Later)

Posted on Jul 29, 2019 8:02 AM

Reply
Question marked as Top-ranking reply

Posted on Jul 29, 2019 8:26 AM

If you want to completely reset Safari quit Safari. Then just go to ~/Library/Safari and drag the Safari folder out onto your Desktop, then restart Safari. If the result is satisfactory you can delete the Desktop folder.

Similar questions

8 replies

Aug 8, 2019 8:00 AM in response to Doug5t

You have always been able to do that. If you want to be able to access your user Library folder, go to Finder and select your user/home folder. With that Finder window as the front window, either select Finder/View/Show View options or go command - J.  When the View options opens, check ’Show Library Folder’. That should make your user library folder visible in your user/home folder.  

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Resetting Safari 12.1.1 in High Sierra

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.