Posted on β01-23-2017 09:10 AM
I am using the following script to delete the Safari & Chrome caches upon login. It seems to work but I noticed it doesnt clear the Safari history.
#!/bin/sh
#Remove Safari and Chrome Cache
sudo -u $3 /bin/rm -rf /Users/$3/Library/Caches/com.apple.Safari
sudo -u $3 /bin/rm -rf /Users/$3/Library/Caches/Google/Chrome
Is that set somewhere else?
Posted on β01-23-2017 09:28 AM
Safari History files are found in ~/Library/Safari/
Posted on β02-15-2018 01:51 PM
Is this script for Mac OS andor iOS? If for iOS, where do you write this script?
Posted on β03-08-2018 08:06 AM
Just wanted to comment that this worked flawlessly for me! I deployed it as a policy in Self-Service and my onsite techs and end users are very thankful.
Posted on β05-09-2019 11:07 PM
Hey Guys, anyway to clear the safari history only...thank you in advance