Turn on removal of items from scan history folder

This policy setting defines the number of days items should be kept in the scan history folder before being permanently removed. The value represents the number of days to keep items in the folder. If set to zero, items will be kept forever and will not be automatically removed. By default, the value is set to 30 days.

If you enable this setting, items will be removed from the scan history folder after the number of days specified.

If you disable or do not configure this setting, items will be kept in the scan history folder for the default number of days.

Supported on: At least Windows Server 2012, Windows 8 or Windows RT

Registry HiveHKEY_LOCAL_MACHINE
Registry PathSoftware\Policies\Microsoft\Windows Defender\Scan
Value NamePurgeItemsAfterDelay
Value TypeREG_DWORD
Enabled Value1
Disabled Value0

Turn on removal of items from scan history folder

Registry HiveHKEY_LOCAL_MACHINE
Registry PathSoftware\Policies\Microsoft\Windows Defender\Scan
Value NamePurgeItemsAfterDelay
Value TypeREG_DWORD
Default Value30
Min Value0
Max Value4294967295

windowsdefender.admx

Administrative Templates (Computers)

Administrative Templates (Users)