Clearing Safari cache without opening

Discussion in 'Mac OS X Lion (10.7)' started by Silas1066, Apr 23, 2012.

  1. Silas1066 macrumors regular

    Joined:
    Nov 1, 2009
    #1
    My Safari got stuck on a bad website (crashes the browser, etc.)

    How do I clear the history and cache WITHOUT opening Safari (because I can't right now)
     
  2. simsaladimbamba

    Joined:
    Nov 28, 2010
    Location:
    located
    #2
    Go to Macintosh HD / Users / YOU / Library / Cache / com.apple.Safari / and delete that folder (com.apple.Safari).

    how to access the hidden Library folder:

    [​IMG]

    Have you tried deleting "com.apple.Safari.plist" in Macintosh HD / Users / YOU / Library / Preferences / too?
     
  3. Bear macrumors G3

    Joined:
    Jul 23, 2002
    Location:
    Sol III - Terra
    #3
    Or more simply if you hold down the option key while you are in Finder -> Go, it will show Library in the list.​
     
  4. simsaladimbamba

    Joined:
    Nov 28, 2010
    Location:
    located
    #4
    Na, too easy. Everyone needs to use the ~ symbol at least once.
     
  5. Bear macrumors G3

    Joined:
    Jul 23, 2002
    Location:
    Sol III - Terra
    #5
    But... but... Aren't Macs supposed to be easy? It also of course helps to prevent typos. Like someone forgetting the tilde.
     
  6. Silas1066 thread starter macrumors regular

    Joined:
    Nov 1, 2009
    #6
    hmmm ...

    I did a

    cd ~/Library/Preferences

    and did a

    sudo rm com.apple.Safari.plist

    it seemed like it deleted it, but when I went back into Safari, the history and cache were still there
     
  7. simsaladimbamba

    Joined:
    Nov 28, 2010
    Location:
    located
    #7
    What about the cache?

    ----------

    Supposed to yes, and most often are of course. But every now and then a little tilde is a nice diversion. Still better than Command Prompt.
     
  8. Bear macrumors G3

    Joined:
    Jul 23, 2002
    Location:
    Sol III - Terra
    #8
    The first reply said what path to follow to find the cache. However, if removing the preferences let you start Safari without an issue, you can use the Empty Cache and Clear History menu options.
     
  9. simsaladimbamba

    Joined:
    Nov 28, 2010
    Location:
    located
    #9
    Yeah, I agree, though my mind was somewhere else when I replied 49 minutes ago.
     
  10. Mac_Man_No_Pro macrumors newbie

    Mac_Man_No_Pro

    Joined:
    Feb 11, 2016
    #10
    Open Safari and as soon as you open it hold command and press w repeatedly until all the windows are gone then click the safari bar and reset safari. it worked for me
     

Share This Page