Open in the explorer

Browsing Data Lifetime Settings

Type
Computer and user
GPO path
Computer Configuration › Policies › Administrative Templates › Microsoft Edge User Configuration › Policies › Administrative Templates › Microsoft Edge
Supported on
Microsoft Edge version 89, Windows 7 or later
ADMX file
msedge.admx
Internal name
msedge/BrowsingDataLifetime

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\Edge
HKEY_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 String

Disable

# 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 SilentlyContinue

User (HKCU)

Enable

Disable

Revert to "Not configured"

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Browsing Data Lifetime SettingsBrowsingDataLifetimeText boxtextBrowsingDataLifetimeREG_SZ
Max length: 1000000

Application

Microsoft Edge (+ Edge Update, WebView2) (Microsoft) — November 2026 templates

Official templates downloaded on November 12, 2026.