How can I delete Chromium browser history at boot up on Raspberry Pi-3?


These two commands clear chromiums cache:

rm ~/.config/google-chrome/Default/
rm ~/.cache/google-chrome

to execute this commands on boot edit your crontab file (more about cronjobs):

crontab -e

append this line to the end of the file:

@reboot rm ~/.config/google-chrome/Default/ && rm ~/.cache/google-chrome

@reboot executes the following commands to remove the chromium/chrome cache at each reboot of your pi but more on the reboot keyword here
Note: To use the @reboot function you have to be root

Hope I could help!

| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.