How to Enable or Disable Deleting Diagnostic Data in Windows 11

Richard
Written by
Richard
Apr 24, 2026 Updated Apr 26, 2026 3 min read
Verified for Geek Rewind — This guide was last tested and updated in April 2026.

This guide explains how to control whether your computer allows you to delete the diagnostic data collected by Microsoft. Windows collects this information to fix bugs, keep your system secure, and improve performance.

Why? You may want to stop this feature if you prefer to restrict how your device manages or removes the history of the data sent to Microsoft servers.

What happens? When you change these settings, you either permit or block the option to clear the diagnostic logs stored on your device.

Note: You must be signed in as an administrator to perform these steps.

Option One

Enable or Disable Deleting Diagnostic Data in Local Group Policy Editor

Note: This option is only available for Windows 11 Pro, Enterprise, and Education editions.

  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
  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.
Configuration options for deleting diagnostic data in Windows 11 settings
  1. Close the editor when finished.

Option Two

Enable or Disable Deleting Diagnostic Data using Registry

Note: This step requires administrator privileges. Open the Windows Terminal as an administrator.

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

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

To Disable deleting diagnostic data, run this command:

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

Summary

You can manage your diagnostic data settings through either the Local Group Policy Editor or the Registry. By default, Windows allows you to delete this data. Using these steps, you can restrict that ability if you wish to lock these settings on your device.

What does deleting diagnostic data do?

Deleting diagnostic data removes the history of information collected by Microsoft from your device. By clearing these logs, you effectively erase the records of system performance, bug reports, and usage data stored locally. This action helps users maintain privacy by ensuring that past diagnostic information is no longer accessible on their computer.

How do I delete diagnostic data?

To delete diagnostic data in Windows 11, go to Settings, select Privacy & security, and click on Diagnostics & feedback. Under the Delete diagnostic data section, click the Delete button. This action permanently removes all diagnostic data associated with your device from Microsoft servers and clears the logs stored on your system.

Where is diagnostic data stored in Windows 11?

Diagnostic data is stored both locally on your Windows 11 device and on Microsoft's secure servers. Locally, the system maintains logs within specific system folders used for performance tracking and bug reporting. You can manage or clear this locally stored information through the Privacy & security settings menu in Windows.

How do I delete diagnostics?

You can delete diagnostics by navigating to Settings > Privacy & security > Diagnostics & feedback. Locate the Delete diagnostic data option and select the Delete button. If you are an administrator, you can also configure Group Policy settings to enable or disable the ability to clear this data across your system.

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.

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

Leave a Comment

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

Exit mobile version