Fully Reset Safari to factory default on Mac

The most popular browser among Mac users is Safari. Due to several reasons, Safari browser will hang, redirect to unwanted sites.
Reset safari browser
I googled it and find some methods to resolve the issue.
Method 1 :Reset Safari from command line
To delete your old Safari settings open the terminal and enter the following commands:

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

command line
Method 2: Reset your Safari browser manually
Once you Reset your browser everything within the browser gets deleted. Suppose if your browser contains so many contents it takes huge time for resetting.

  1. Open the Safari browser.
  2. To pull down the menu “click Safari” on the top left corner of the browser.
  3. Click on “Reset Safari” option.

reset your Safari browserThe popup menu appears with a list of options.

  •  Clear history
  •  Reset Top sites
  •  Remove all webpage preview images
  •  Empty cache
  •  Clear the Downloads window
  •  Remove all cookies
  •  Remove saved names and icons
  •  Remove other autofill form text
  •  Clear all Safari windows
  •  Reset Safari browser all location warnings
  1.   Choose the relevant option to reset your browser
  2.   Click Reset button.

Method 3:  Just remove site history
If you find any problem within one website, you can remove data on-site basis.
Step to remove data on site basis

  1. Go to privacy section of Safari’s preferences.
  2. Under “Remove all website data” click Details button.
  3. Delete your site from the list.

 Method 4:  To delete configuration folder
Launch the Go menu in OS X Finder

  1. Clasp the option key and choose the library option that appears.
  2. Move the Safari folder to your desktop.

Method 5:  To delete window state

  1. Navigate Library > saved application state folder
  2. Locate “com.apple.Safari.savedState” folder.
  3. Move the folder to the trash.

Method 6:  To delete application caches

  1. Launch Library > Caches folder
  2. Find each folder that starts with “com.apple.Safari”
  3. Move the folder to the trash.

Method 7:  To delete cookies configuration

  1. Launch Library > Cookies folder
  2. Delete the file “com.apple.Safari.SafeBrowsing.binarycookies”.

Method 8: To delete Preferences

  1. Launch Library > preference folder
  2. Delete any file starts with the extension “com.apple.Safari”.

Method 9: To delete User Plug -ins

  1. Visit Library > Internet Plug-ins folder
  2. Take over all items to your desktop

Method 10: To delete Global Plug -ins

  1. Visit  Macintosh > HD >Internet Plug-ins folder.
  2. Except the following  Plug-ins replace all items out of this folder.

Default Browser.plugin
Quartz Composer.webplugin
QuickTime Plugin.plugin

10:53 am

Leave a Reply