Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Silas1066

macrumors regular
Original poster
Nov 1, 2009
110
0
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)
 
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:

2012_03_120_pA1_GoToLibraryFolder.png

Have you tried deleting "com.apple.Safari.plist" in Macintosh HD / Users / YOU / Library / Preferences / too?
 
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
 
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

What about the cache?

----------

But... but... Aren't Macs supposed to be easy? It also of course helps to prevent typos. Like someone forgetting the tilde.

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.
 
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
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.
 
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.

Yeah, I agree, though my mind was somewhere else when I replied 49 minutes ago.
 
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)

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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.