Policy
Disable deleting diagnostic data
This policy setting controls whether the Delete diagnostic data button is enabled in Diagnostic & feedback Settings page. If you enable this policy setting, the Delete diagnostic data button will be disabled in Settings page, preventing the deletion of diagnostic data collected by Microsoft from the device. If you disable or don't configure this policy setting, the Delete diagnostic data button will be enabled in Settings page, which allows people to erase all diagnostic data collected by Microsoft from that device.
9bfd40636095 DisableDeviceDelete Registry
Copy registry mappings
HKLM\Software\Policies\Microsoft\Windows\DataCollection\DisableDeviceDelete (enabled) = 1
HKLM\Software\Policies\Microsoft\Windows\DataCollection\DisableDeviceDelete (disabled) = 0 Policy notes
This policy setting controls whether the Delete diagnostic data button is enabled in Diagnostic & feedback Settings page. If you enable this policy setting, the Delete diagnostic data button will be disabled in Settings page, preventing the deletion of diagnostic data collected by Microsoft from the device. If you disable or don't configure this policy setting, the Delete diagnostic data button will be enabled in Settings page, which allows people to erase all diagnostic data collected by Microsoft from that device.