Skip to content
Follow
Windows

How to Enable or Disable Deleting Diagnostic Data in Windows 11

Richard
Written by
Richard
Apr 24, 2026 Updated Sep 15, 2026 2 min read
Close-up Windows Registry Editor with highlighted entry
Close-up Windows Registry Editor with highlighted entry

Deleting diagnostic data in Windows 11 clears the system info and activity logs stored on your computer and sent to Microsoft. Windows keeps these files to fix bugs and make the operating system safer, but you can block local accounts from wiping that history.

Advertisement

You need to sign in as an administrator to change this setting on your PC.

⚡ Quick Answer

You can enable or disable deleting diagnostic data in Windows 11 using the Local Group Policy Editor or Registry. For Pro, Enterprise, or Education editions, open gpedit.msc and navigate to Data Collection. For other editions, use the Registry Editor with administrator privileges and modify the DisableDeviceDelete value.

Advertisement

Option One

Enable or Disable Deleting Diagnostic Data in Local Group Policy Editor

Local Group Policy Editor lets you control whether users can delete diagnostic data sent from Windows 11 to Microsoft. You can use this built-in tool on Windows 11 Pro, Enterprise, and Education editions to turn the delete option on or off across your system by changing a single policy setting.

  1. Open the Local Group Policy Editor by searching for gpedit.msc in the Start menu .
  2. Navigate to the following path in the left menu:
  3. Computer Configuration > Administrative Templates > Windows Components > Data Collection and Preview Builds
Disable deleting diagnostic data setting in Windows 11.
Disable deleting diagnostic data setting in Windows 11.
  1. In the right pane, double-click on Disable deleting diagnostic data.

To Enable Deleting Diagnostic Data (Default):

  • Select Not Configured.
  • Click OK.

To Disable Deleting Diagnostic Data:

  • Select Enabled.
  • Click OK.
Windows 11 Group Policy Editor options for diagnostic data deletion.
Windows 11 Group Policy Editor options for diagnostic data deletion.
  1. Close the editor when finished.

Option Two

Enable or Disable Deleting Diagnostic Data using Registry

Registry Editor lets you delete diagnostic data settings in Windows 11 by running specific commands in the command prompt. You can quickly turn the delete feature on or off by adding or removing a specific registry key value in the main Windows system paths.

Advertisement

To Enable deleting diagnostic data (Default), run this command:

reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v DisableDeviceDelete /f

To Disable deleting diagnostic data, run this command:

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v DisableDeviceDelete /t REG_DWORD /d 1 /f

Summary

Managing diagnostic data settings happens through either the Local Group Policy Editor or the Registry. By default, Windows allows you to delete this data. Restricting that ability locks these settings securely on the machine.

Was this guide helpful?

Tags: #Windows 11
Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

Advertisement

📚 Related Tutorials

How to Delete Diagnostic Data in Windows 11
Windows How to Delete Diagnostic Data in Windows 11
How to Change Your Diagnostic Data Setting in Windows 11
Windows How to Change Your Diagnostic Data Setting in Windows 11
How to Enable or Disable Diagnostic Data Viewer in Windows 11
Windows How to Enable or Disable Diagnostic Data Viewer in Windows 11
How to View Local Group Policies that are Configured in Windows 11
Windows How to View Local Group Policies that are Configured in Windows 11

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *