en-US windows computer user

Prevent deleting InPrivate Filtering data

Verified with Windows 11 25H2 — updated on July 23, 2026

Windows 11 25H2

Supported on: Only Internet Explorer 8.0

Path in the GPO console

Computer Configuration\Administrative Templates\Windows Components\Internet Explorer\Delete Browsing History

Description

This policy setting prevents the user from deleting InPrivate Filtering data. Internet Explorer collects InPrivate Filtering data during browser sessions other than InPrivate Browsing sessions to determine which third-party items should be blocked when InPrivate Filtering is enabled. This feature is available in the Delete Browsing History dialog box. If you enable this policy setting, InPrivate Filtering data is preserved when the user clicks Delete. If you disable this policy setting, InPrivate Filtering data is deleted when the user clicks Delete. If you do not configure this policy setting, the user can choose whether to delete or preserve InPrivate Filtering data when he or she clicks Delete.

Registry

HKLM Software\Policies\Microsoft\Internet Explorer\Privacy
HKCU Software\Policies\Microsoft\Internet Explorer\Privacy

Value name: CleanInPrivateBlocking

Enabled: CleanInPrivateBlocking = 0

Disabled: CleanInPrivateBlocking = 1

Export Builder

BETA

Configure the state, scope and options, then generate .reg, PowerShell, Intune and SCCM outputs — or add the setting to a multi-setting collection.

These exports write the registry — this is not a managed GPO.

Scope

.reg file

Windows Registry Editor Version 5.00

; Exported from gporais.com
; Policy: Prevent deleting InPrivate Filtering data
; State: Enabled
; Scope: Computer (HKLM)
; Supported on: Only Internet Explorer 8.0

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Internet Explorer\Privacy]
"CleanInPrivateBlocking"=dword:00000000
More formats (PowerShell, Intune, SCCM)

PowerShell

# Exported from gporais.com
# Policy: Prevent deleting InPrivate Filtering data
# State: Enabled
# Scope: Computer (HKLM)
# Supported on: Only Internet Explorer 8.0

$path = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Privacy'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'CleanInPrivateBlocking' -Value 0 -Type DWord

Building a multi-setting collection? Add this setting and generate combined .reg / PowerShell / GPO scripts.

Open the Builder

Embed this policy on your site

What to embed
Theme

Adds one script line: the theme follows your site’s appearance and the height fits the content. If your site blocks scripts, the embed follows the visitor’s system theme.

Preview