Posted on 01-29-2020 02:20 PM
Trying to have all users' computers restart every morning;
I have a script that kills all processes and restarts after 1minute. I need a script to also remove the cookies, history, and cache of Chrome on said restart so they essentially start "fresh" each day without losing their extensions.
Tried this but it's not working:
Remove Google Chrome Browser Cache Cookies and Extension Logins
sudo rm -Rf ~/Library/Caches/Google/Chrome/Default/Cache/
sudo rm -Rf ~/Library/Application Support/Google/Chrome/Default/Cookies/
sudo rm -Rf ~/Library/Application Support/Google/Chrome/Default/Cookies-journal/
sudo rm -Rf ~/Library/Application Support/Google/Chrome/Default/Extension/
sudo rm -Rf ~/Library/Application Support/Google/Chrome/Default/Extension-journal/
sudo rm -Rf ~/Library/Application Support/Google/Chrome/Default/History/
sudo rm -Rf ~/Library/Application Support/Google/Chrome/Default/History-journal/
Posted on 06-20-2020 03:13 AM
Did you find something already ?
Posted on 09-09-2020 07:02 AM
Looking for this exact thing as well.
Posted on 09-09-2020 02:41 PM
Me too, as well as Safari data, but I know there are SIP issues relate to that.
Posted on 04-02-2021 08:58 AM
This is what I use for Cookies, but could be easily modified to include everything else you need.
#!/bin/bash ## System Variables USERNAME=`stat -f%Su /dev/console` COOKIEPATH="/Users/$USERNAME/Library/Application Support/Google/Chrome" find "$COOKIEPATH" -name Cookies -delete pkill Google Chrome
Posted on 11-03-2021 11:11 AM
I want to do the exact opposite. I want to keep the students from deleting their browsing history. Is that doable 🙂 is there a script for that?
Posted on 11-03-2021 03:35 PM
Check out Chrome Management, there's built-in functionality with JAMF Pro now. which makes enrolling browsers very easy, one of the policies you can set once enrolled is not being able to delete history.
Have just rolled this out so feel free to shoot through a DM if you have any questions.
Posted on 11-03-2021 03:39 PM
For iPads? IOS
Posted on 11-03-2021 03:57 PM
I haven't tried it on iOS but from what i've seen its only for MacOS, Windows, Linux and ChromOS
Posted on 11-03-2021 04:26 PM
I've just checked it out and looks like there is the ability for iOS devices. unsure on the enrolment process for ipads though.