As we all know, the world's biggest ad provider google refuse to provide an easy way to auto clean browser history. We can still set our custom policy to enable the hidden feature in chrome browser
mkdir /etc/opt/chrome/policies/managed
cd /etc/opt/chrome/policies/managed
touch custom_policy.json
{
"ClearBrowsingDataOnExitList": [
"browsing_history",
"download_history",
"cookies_and_other_site_data",
"cached_images_and_files",
"password_signin",
"autofill",
"site_settings",
"hosted_app_data"
]
}
Open chrome browser and enter chrome://policy