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

camelia

macrumors 6502a
Original poster
Hello,

I have install/uninstall, downloading/upgrading/downgrading several apps. and now my macOS Sequoia 15.7.3 (24G419)is a mess...

I would like to delete cookies, especially persistent cookies (Firefox and Safari), maybe deleting all the contents of these browsers without creating a new profile (Like before first launch)

In short how do I clean my macOS for "Junk Files" using Terminal?

How do I start? and which are the commands for this task?

Thanks
Camelia

Ps: I bought a license for PlistEdit Pro, I don't know if it is useful for the requested question.

@bogdanw
 
Last edited:
I have install/uninstall
You should use an app like AppCleaner when removing apps, it will search for the app's files in common locations and offer to delete them along with the app.
I would like to delete cookies, especially persistent cookies (Firefox and Safari), maybe deleting all the contents of these browsers without creating a new profile (Like before first launch)
You can reset Firefox and Safari by removing
Code:
~/Library/Application Support/Firefox
~/Library/Caches/Firefox
and
Code:
~/Library/Safari
~/Library/Containers/com.apple.Safari
~/Library/Preferences/Preferences/com.apple.Safari*
In short how do I clean my macOS for "Junk Files" using Terminal?
This is too generic to offer advice for. What issues are you trying to solve specifically?
Ps: I bought a license for PlistEdit Pro, I don't know if it is useful for the requested question.
If you don't know if you need it, there's a very good chance you don't. Xcode has a built-in plist editor which is good enough for most.
 
  • Love
Reactions: camelia
"I would like to delete cookies, especially persistent cookies (Firefox and Safari), maybe deleting all the contents of these browsers without creating a new profile (Like before first launch)
In short how do I clean my macOS for "Junk Files" using Terminal?"


There is an app called (simply) "Cookie" that can do much of this for you.

You can use it to select certain websites where you WANT cookies to remain (such as sites you regularly visit and must log into), and get rid of ALL the rest.

Here's a list showing what it can remove:
remove.jpg

You can set Cookie so that it runs automatically when you want it to.
I've set it to "clean out" Safari each and every time I quit it.
I keep no history, few cookies, clear caches, etc.
Works great.
I guess that's just "me being me"...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.