chromium/components/policy/resources/templates/policy_definitions/Miscellaneous/ClearBrowsingDataOnExitList.yaml

caption: Clear Browsing Data on Exit
desc: |-
  Configures a list of browsing data types that should be deleted when the user closes all browser windows.

  Warning: Setting this policy can impact and permanently remove local personal data. It is recommended to test your settings before deploying to prevent accidental deletion of personal data.

  The available data types are browsing history (<ph name="DATA_TYPE_BROWSING_HISTORY">browsing_history</ph>), download history (<ph name="DATA_TYPE_DOWNLOAD_HISTORY">download_history</ph>), cookies (<ph name="DATA_TYPE_COOKIES_AND_OTHER_SITE_DATA">cookies_and_other_site_data</ph>), cache<ph name="DATA_TYPE_CACHED_IMAGES_AND_FILES"> (cached_images_and_files)</ph>, autofill (<ph name="DATA_TYPE_AUTOFILL">autofill</ph>), passwords (<ph name="DATA_TYPE_PASSWORD">password_signin</ph>), site settings (<ph name="DATA_TYPE_SITE_SETTINGS">site_settings</ph>) and hosted apps data (<ph name="DATA_TYPE_HOSTED_APP_DATA">hosted_app_data</ph>). This policy does not take precedence over <ph name="ALLOW_DELETING_BROWSER_HISTORY_POLICY_NAME">AllowDeletingBrowserHistory</ph>.

  Until Chrome 114, this policy required the <ph name="SYNC_DISABLED_POLICY_NAME">SyncDisabled</ph> policy to be set to true. Starting Chrome 115, setting this policy will disable sync for the respective data types if neither `<ph name="CHROME_SYNC_NAME">Chrome Sync</ph>` is disabled by setting the <ph name="SYNC_DISABLED_POLICY_NAME">SyncDisabled</ph> policy nor <ph name="BROWSER_SIGNIN_POLICY_NAME">BrowserSignin</ph> is disabled.

  If for some reason the data deletion has started and did not complete, the browsing data will be cleared the next time the profile is loaded.

  If <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph> does not exit cleanly (for example, if the browser or the OS crashes), the browsing data will not be cleared since the browser closing was not a result of the use closing all the browser windows.
example_value:
- browsing_history
- download_history
- cookies_and_other_site_data
- cached_images_and_files
- password_signin
- autofill
- site_settings
- hosted_app_data
features:
  dynamic_refresh: true
  per_profile: true
future_on:
- fuchsia
items:
- caption: Browsing history
  name: browsing_history
  value: browsing_history
- caption: Download history
  name: download_history
  value: download_history
- caption: Cookies and other site data
  name: cookies_and_other_site_data
  value: cookies_and_other_site_data
- caption: Cached images and files
  name: cached_images_and_files
  value: cached_images_and_files
- caption: Password signin
  name: password_signin
  value: password_signin
- caption: Autofill
  name: autofill
  value: autofill
- caption: Site settings
  name: site_settings
  value: site_settings
- caption: Hosted apps data
  name: hosted_app_data
  value: hosted_app_data
owners:
- [email protected]
- [email protected]
schema:
  items:
    enum:
    - browsing_history
    - download_history
    - cookies_and_other_site_data
    - cached_images_and_files
    - password_signin
    - autofill
    - site_settings
    - hosted_app_data
    type: string
  type: array
supported_on:
- chrome.*:89-
- chrome_os:89-
tags: []
type: string-enum-list