Browsing Data Lifetime Settings
Explanation
This policy controls how long specific types of browsing data are retained.
If Sync is enabled, this policy has no effect.
You can specify the following data types:
'browsing_history'
'download_history'
'cookies_and_other_site_data'
'cached_images_and_files'
'password_signin'
'autofill'
'site_settings'
'hosted_app_data'
Microsoft Edge periodically deletes data of the selected types that's older than the value set by 'time_to_live_in_hours'.
Expired data is removed 15 seconds after browser startup and every hour while the browser is running.
Note: Deleting cookies using this policy doesn't sign the user out of their profile, the user stays signed in.
Example value:
[
{
"data_types": [
"browsing_history"
],
"time_to_live_in_hours": 24
},
{
"data_types": [
"password_signin",
"autofill"
],
"time_to_live_in_hours": 12
}
]
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\EdgeHKEY_CURRENT_USER\Software\Policies\Microsoft\Edge- Value name
- not defined in the ADMX
Enable / disable values: not defined in the ADMX (see the options below).
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Computer (HKLM)
Enable
# Enable: msedge/BrowsingDataLifetime
$k = 'HKLM:\Software\Policies\Microsoft\Edge'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Browsing Data Lifetime Settings
Set-ItemProperty -Path $k -Name 'BrowsingDataLifetime' -Value '<value>' -Type StringDisable
# Disable: msedge/BrowsingDataLifetime
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": msedge/BrowsingDataLifetime
$k = 'HKLM:\Software\Policies\Microsoft\Edge'
Remove-ItemProperty -Path $k -Name 'BrowsingDataLifetime' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"
Options (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Browsing Data Lifetime SettingsBrowsingDataLifetime | Text boxtext | BrowsingDataLifetime | REG_SZ | Max length: 1000000 |
Application
Microsoft Edge (+ Edge Update, WebView2) (Microsoft) — November 2026 templates
Official templates downloaded on November 12, 2026.