Automatically delete Chrome data from devices

Applies to managed Chrome browsers and Chromium-plate Oculus sinister devices.

Chrome version 89 or later.

As an decision maker, you fanny ascendance how long Chrome keeps data, such as account, cookies, and passwords. You can delete certain data as presently as Chrome closes or when it becomes older than the time that you specify.

Ahead you begin

  • Turn off Google Sync using the SyncDisabled policy. If you set the policy to cancel data at weapons platform equal, you need to tour off Sync at platform raze. Likewise, if you set the policy to delete information at user steady, you need to become murder Sync at user storey.
  • The data types that you can delete are:
    • browsing_history—Deletes the browsing history
    • download_history—Deletes the download story
    • cookies_and_other_site_data—Deletes cookies and other web site information
    • cached_images_and_files—Deletes cached images and files on the users device
    • password_signin—Deletes saved passwords
    • autofill—Deletes saved autofill data that was blest in the browser
    • site_settings—Resets site settings to their defaults
    • hosted_app_data—Deletes data cache for hosted apps that are installed in the web browser

Review policies

Policy Description and settings

ClearBrowsingDataOnExitList

Specify the browse data types that are deleted when Chrome closes.

This insurance policy does non take precedence over AllowDeletingBrowserHistory.

BrowsingDataLifetime

Configure browse data lifetime settings for Chrome. Determine the length of time afterward which Chrome deletes certain types of data.

Specify time_to_live_in_hours:

  • Minimum—1
  • Maximum—2,147,483,647, the largest value that a signed 32-bit integer field can hold

Sometimes data might remove slightly thirster to delete than the length of time that you specify.

Delete data when Chrome closes

Windows (Group Insurance)

Applies to Windows  users who check in to a managed calculate connected Chromium-plate browser.

In your Microsoft Windows Group Policy Management Editor (Computer or User Shape folder):

  1. Go to Policies and then Body Templates and then Google and then Google Chrome.
  2. Enable Clear Browsing Data on Exit.
  3. Add the data types that you want Chromium-plate to delete. See the list of available data types in Before you begin above.
  4. Deploy the update to your users.

For sample code, see the examples below.

Windows (Register)

Applies to Windows  users who sign in to a managed account on Chrome web browser.

Under Software\Policies\Google\Chrome, configure ClearBrowsingDataOnExitList to cancel certain data types when the web browser closes. See the list of available information types in Before you begin above.

For sample distribution code, see the examples beneath.

For instructions happening how to add, change, and delete registry keys, see your Microsoft software documentation.

Mac

Applies to Mack  users who planetary hous in to a managed account on Chrome web browser.

  1. In your Chromium-plate configuration profile, add or update the following key:
    • Add the information types that you want Chromium-plate to delete to the ClearBrowsingDataOnExitList keystone.
      See the lean of available data types in Earlier you begin above.
  2. Deploy the update to your users.


For try code, see the examples beneath.

Linux

Applies to Linux  users who signalize in to a managed account happening Chrome browser.

Victimisation your favored JSON file editor:

  1. Attend your etc/opt/chrome/policies/managed leaflet.
  2. Create or update a JSON file.
  3. In ClearBrowsingDataOnExitList, contribute the data types you want to delete.
    See the inclination of available data types in Before you begin higher up.
  4. Deploy the update to your users.

For sampling code, project the examples below.

Blue-pencil data after a mere length of time

Windows (Group Policy)

Applies to Windows  users who sign in to a managed account on Chrome browser.

In your Microsoft Windows Grouping Insurance policy Management Editor (Computer or User Configuration folder):

  1. Go to Policies and then Body Templates and then Google and then Google Chrome.
  2. Enable Browsing Information Life-time Settings.
  3. InJavaScript Object Notation (JSON) format, add the information types that you want to delete and their lifetime. See the list of lendable data types in Before you begin supra.
    Note: Move into JSON data as a single delineate with no line breaks.
  4. Deploy the update to your users.

For sample code, see the examples below.

Windows (Register)

Applies to Windows  users who sign in to a managed account on Chrome browser.

Under Software\Policies\Google\Chrome, configure BrowsingDataLifetime to specify the information types you want to delete and their lifetime. See the listing of acquirable data types in Earlier you get above.

For sample cipher, see the examples below.

For operating instructions happening how to add, change, and delete register keys, see your Microsoft documentation.

Mac

Applies to Mac  users who sign in to a managed account on Chrome web browser.

  1. In your Chromium-plate constellation profile, minimal brain dysfunction or update the following key:
    • Lend the data types that you want to edit and their life to the ClearBrowsingDataOnExitList key.
      Run across the list of available information types in Before you begin above.
  2. Deploy the update to your users.

For sample code, visit the examples down the stairs.

Linux

Applies to Linux  users who sign in to a managed account on Chrome browser.

Using your preferent JSON register editor program:

  1. Go to your etc/prefer/chromium-plate/policies/managed brochure.
  2. Create or update a JSON file.
  3. In BrowsingDataLifetime, add u the information types you want to delete and their lifetime.
    See the list of available information types in Before you begin preceding.
  4. Deploy the update to your users.

For sample write in code, see the examples infra.

Examples

Erase all information types when Chromium-plate closes

Windows (Group Policy)

["browsing_history","download_history","cookies_and_other_site_data","cached_images_and_files","password_signin","autofill","site_settings","hosted_app_data"]

Windows (Registry)

Software\Policies\Google\Chromium-plate\ClearBrowsingDataOnExitList\1 = browsing_history
Software\Policies\Google\Chrome\ClearBrowsingDataOnExitList\2 = download_history
Software\Policies\Google\Chrome\ClearBrowsingDataOnExitList\3 = cookies_and_other_site_data
Software\Policies\Google\Chrome\ClearBrowsingDataOnExitList\4 = cached_images_and_files
Software\Policies\Google\Chrome\ClearBrowsingDataOnExitList\5 = password_signin
Software\Policies\Google\Chromium-plate\ClearBrowsingDataOnExitList\6 = autofill
Software program\Policies\Google\Chrome\ClearBrowsingDataOnExitList\7 = site_settings
Software\Policies\Google\Chromium-plate\ClearBrowsingDataOnExitList\8 = hosted_app_data

Mackintosh

<key>ClearBrowsingDataOnExitList</key>
<dict>
<array>
<string>browsing_history</drawstring>
<train>download_history</string>
<string>cookies_and_other_site_data</string>
<thread>cached_images_and_files</string>
<string>password_signin</string>
<string>autofill</strand>
<string>site_settings</string up>
<string>hosted_app_data</string>
</array>
</dict>

Linux

{
"ClearBrowsingDataOnExitList": ["browsing_history", "download_history", "cookies_and_other_site_data", "cached_images_and_files", "password_signin", "autofill", "site_settings", "hosted_app_data]
}

Delete visibility direction data when Chrome closes

When users habit Chrome, the browser often caches files and images to score future browse to the same website quicker. As users browse to a circumstances of websites, the amount of cache stored on their device increases. For users with qualified or shared storage on their devices, you might want to prevent profiles from growing too large. Clearing cached images and files, likewise as hosted app data, deletes most of the data and keeps profiles at a manageable size.

Windows (Group Policy)

["cached_images_and_files","hosted_app_data"]

Windows (Registry)

Software\Policies\Google\Chrome\ClearBrowsingDataOnExitList\1 = cached_images_and_files
Package\Policies\Google\Chrome\ClearBrowsingDataOnExitList\2 = hosted_app_data

Mac

<key>ClearBrowsingDataOnExitList</key>
<dict>
<array>
<string>cached_images_and_files</string>
<string>hosted_app_data</string>
</array>
</dict>

Linux

{
"ClearBrowsingDataOnExitList": ["cached_images_and_files", "hosted_app_data]
}

Delete browse history every 24 hours, and parole check in and autofill data every 12 hours

Windows (Mathematical group Policy)

[{"data_types":["browsing_history"],"time_to_live_in_hours":24},{"data_types":["password_signin","autofill"],"time_to_live_in_hours":12}]

Windows (Registry)

Software package\Policies\Google\Chromium-plate\BrowsingDataLifetime = [
{
"data_types": [
"browsing_history"
],
"time_to_live_in_hours": 24
},
{
"data_types": [
"password_signin",
"autofill"
],
"time_to_live_in_hours": 12
}
]

Mac

<primal>BrowsingDataLifetime</key fruit>
<array>
<dict>
<tonality>data_types</discover>
<array>
<bowed stringed instrument>browsing_history</drawing string>
</array>
<key>time_to_live_in_hours</key>
<integer>24</whole number></dict>
<dict>
<key>data_types</key>
<array>
<string>password_signin</train>
<string>autofill</drawing string>
</array>
<key>time_to_live_in_hours</Florida key>
<integer>12</integer></dict>
</array>

Linux

BrowsingDataLifetime = [
{
"data_types": [
"browsing_history"
],
"time_to_live_in_hours": 24
},
{
"data_types": [
"password_signin",
"autofill"
],
"time_to_live_in_hours": 12
}
]

Swear policies are applied

Aft you apply some Chrome policies, users need to restart Chrome for the settings to take burden. You can check users' devices to make trusty the policy was applied correctly.

  1. On a managed device, give-up the ghost to chrome://policy.
  2. Clink Reload policies.
  3. For ClearBrowsingDataOnExitList and BrowsingDataLifetime, make a point Status is set to OK.
  4. For ClearBrowsingDataOnExitList and BrowsingDataLifetime, click Indicate more and make sure that the measure fields are the same as what you kick in the policy.

Google and related marks and logos are trademarks of Google LLC. All other company and product names are trademarks of the companies with which they are associated.

Was this laboursaving?

How privy we improve it?