Cyber Cloud Ops Logo
Microsoft Intune

Control Diagnostic Data Deletion on Windows Devices Using Intune

By Admin User
July 4, 2025
10 min
Control Diagnostic Data Deletion on Windows Devices Using Intune

In today’s security-first world, every setting matters — especially when it comes to data privacy and control. One often overlooked configuration in Windows is the ability for users to delete their device's diagnostic data. But what if your organization wants to prevent this action to maintain consistency and support troubleshooting?

With Microsoft Intune, we can manage this setting centrally using the System Configuration profile, offering organizations the ability to enable or disable the "Delete diagnostic data" option directly from Windows Settings.

What Is the Device Delete Policy?

The Device Delete Setting controls whether users can remove diagnostic data collected by Microsoft. This data helps improve Windows by identifying bugs, enhancing security, and optimizing performance.

  • If enabled via policy: The Delete diagnostic data button is hidden, preventing users from manually erasing this information.

  • 🔄 If disabled or not configured: Users will be able to manually delete all diagnostic data from their device.

📋 Why Disable the Delete Option?

Disabling the delete option through Intune brings several benefits:

  • 🔒 Prevents accidental or intentional data loss

  • 🧩 Ensures more accurate diagnostic information for troubleshooting

  • 🛡️ Helps prevent gaps in telemetry that could aid security investigations

  • 🏢 Maintains consistency across managed endpoints

💡 This policy is particularly important for organizations aiming to meet compliance requirements or those relying heavily on telemetry to monitor endpoint health.

How to Configure in Intune

In this article, I walk you through:

  1. Creating a configuration profile using Intune Settings Catalog

  2. Applying the System/AllowDeviceDelete policy

  3. Verifying the policy on the client side

  4. Monitoring the deployment status in the Intune Admin Center

Behind the Scenes: The CSP

This setting leverages the System Configuration Service Provider (CSP) in Windows 10/11, which outlines:

  • 📘 Policy descriptions

Control Diagnostic Data Deletion on Windows Devices Using Intune - Table 01
  • ✅ Allowed values

Control Diagnostic Data Deletion on Windows Devices Using Intune - Table 02
  • 🔁 Mappings to legacy Group Policy settings

Control Diagnostic Data Deletion on Windows Devices Using Intune - Fig. 03
Control Diagnostic Data Deletion on Windows Devices Using Intune - Table 03

This helps IT admins understand how modern Intune policies align with traditional management strategies.

Control Diagnostic Data Deletion on Windows Devices Using Intune - Fig 01

How to Enable or Disable the Device Delete Policy in Windows via Intune

Controlling how users interact with diagnostic data is a key step toward improving security, ensuring compliance, and maintaining reliable telemetry across your endpoints. One critical setting is the Device Delete Policy, which determines whether users can remove diagnostic data collected by Microsoft.

There are two ways to configure this policy in Windows 10/11 devices:

  • Using a Custom OMA-URI (Open Mobile Alliance – Uniform Resource Identifier)

  • Using Microsoft Intune

What’s an OMA-URI?

An OMA-URI is a unique path that maps directly to a setting managed by a Configuration Service Provider (CSP). These paths allow administrators to push custom configurations to Windows devices, even when settings are not available through the default Intune templates.

Step-by-Step: Configure Device Delete Policy via OMA-URI in Intune

Here’s how to deploy the policy using a custom OMA-URI:

  • Sign in to the Microsoft Intune Admin Center

  • Navigate to: DevicesConfiguration profiles

  • Click Create profile

  • Choose the platform: Windows 10 and later

  • Profile type: Select TemplatesCustom

  • Click Create

Control Diagnostic Data Deletion on Windows Devices Using Intune - Fig 02
  • Enter a Name: Disable Device Delete (Optional: add a Description)

  • Click Next

Control Diagnostic Data Deletion on Windows Devices Using Intune - Fig 03
  • Under OMA-URI Settings, click + Add and fill in the following:

  • Name: Disable Device Delete

  • Description: Controls whether the "Delete diagnostic data" button is visible under Diagnostic & Feedback Settings in Windows.

  • OMA-URI: ./Device/Vendor/MSFT/Policy/Config/System/DisableDeviceDelete

  • Data type: Integer

  • Value: 1 = Disable the button (prevents user deletion) 0 = Enable the button (allows deletion)

  • 8. Click Save, then assign and deploy the profile to your target device group.

Control Diagnostic Data Deletion on Windows Devices Using Intune - Fig 04

Why Disable Device Delete?

  • Protects against loss of important diagnostic data

  • Enhances security posture by keeping telemetry intact

  • Supports compliance with data retention policies

  • Assists helpdesk and IT teams during troubleshooting

Enable or Disable Device Delete Policy in System Settings using Intune

To start deploying a policy in Intune, sign in to the Microsoft Intune Admin Center. Then, go to

  1. In the left-hand menu, select Devices

  2. Click on Windows Devices under the “By platform” section

  3. Select Configuration

  4. Click + New Policy to begin configuring your policy

  5. Under Platform, select Windows 10 and later

  6. For Profile type, choose Settings catalog

  7. Click Create to proceed

Control Diagnostic Data Deletion on Windows Devices Using Intune - Fig 05

Basic Information of the Policy – Disable Device Delete

Once you begin creating the configuration profile, the first step is to complete the Basics section. This involves:

  • Defining a clear and descriptive name

  • Optionally adding a description

  • Reviewing the platform (which defaults to Windows 10 and later — no changes needed here)

Providing a meaningful name and description helps you and your team quickly identify the purpose of the policy, which is especially useful in environments managing multiple configurations via Intune.

Here’s an example:

  • Policy Name: Disable Device Delete

  • Description: This policy controls whether the Delete diagnostic data button is available in Windows Diagnostic and Feedback Settings. It allows organizations to restrict users from deleting telemetry data collected by Microsoft, helping maintain data integrity, support security investigations, and ensure consistent device monitoring.

Control Diagnostic Data Deletion on Windows Devices Using Intune - Fig 06

Now, for Configuration Settings, we can define this policy’s exact function. Click Add Settings to open the Settings Picker.

  • In the search bar, type Disable Device as a category

  • Select System to configure.

  • Select Disable Device Delete to configure.

  • Close the Settings Picker window.

After selecting Disable Device Delete from the Settings Picker and closing it, the setting will appear on the Configuration Settings page.

At this stage, you can fine-tune the behavior by selecting the appropriate value from the dropdown menu, based on your organization’s requirements.

You’ll have two options available:

  • Disabled – Prevents users from deleting diagnostic data.

  • Not configured (default) – Allows users to delete diagnostic data.

Control Diagnostic Data Deletion on Windows Devices Using Intune - Table 04

By default, the setting will be configured as Not configured, meaning the delete button remains visible to users unless explicitly disabled.

Control Diagnostic Data Deletion on Windows Devices Using Intune - Fig 07

Add Scope Tags to a Policy

Now you are on the next step called Scope Tags. A scope tag is used to assign policies to specific groups within an organization. In this step, you can select a scope tag for the policy. However, I suggest skipping this section because it is not needed for this policy. So, I clicked Next to continue.

Control Diagnostic Data Deletion on Windows Devices Using Intune - Fig 08

Assigning the Policy

The next step is the Assignments section, where you define which user or device groups will receive the policy.

Since our goal is to target a specific group, this step is essential for proper deployment.

  • Under Include groups, click Add groups.

  • A window will appear showing available Azure AD groups.

  • Use the search bar to quickly locate the group you want to assign the policy to.

  • Select the desired group and confirm your choice.

Once the group is selected, click Next to proceed to the final step.

Control Diagnostic Data Deletion on Windows Devices Using Intune - Fig 09

Review + Create – Finalizing the Policy

After completing the Assignments step, you'll reach the final stage: Review + Create.

This tab provides a full summary of all the information you've entered, including:

  • Basic details (name, description, platform)

  • Configuration settings you've defined

  • Targeted assignment groups

Carefully review each section to ensure everything is correct and aligned with your deployment goals.

Once everything looks good, click Create to finalize and deploy the policy.

Your configuration will now be applied based on the assignment scope you defined.

Control Diagnostic Data Deletion on Windows Devices Using Intune - Fig 10

Monitoring Status – Verifying Policy Deployment

After creating and assigning the policy, it's important to monitor whether it has been successfully applied to the target devices.

You can wait for the automatic sync cycle (which may take up to 8 hours), or you can manually trigger a sync using the Company Portal app to accelerate the process.

Once the device has synced, follow these steps to verify the deployment status in the Intune admin center:

  1. Navigate to Devices > Configuration Profiles.

  2. In the list of configuration profiles, use the search bar to locate your policy by name. In this example, we named the policy: 👉 “Disable Device Delete”

  3. Click on the policy name to open its details.

  4. Here, you'll see the deployment status, including how many devices have successfully received the policy, how many are pending, and any errors if applicable.

Monitoring ensures the configuration is working as expected and allows for quick troubleshooting if needed.

Control Diagnostic Data Deletion on Windows Devices Using Intune - Fig 11

Client-Side Verification: Has the “Disable Device Delete” Policy Been Applied?

To confirm whether the Disable Device Delete policy was successfully applied to a device, you can use the Event Viewer on the client machine.

Navigate to: Event Viewer > Applications and Services Logs > Microsoft > Windows > DeviceManagement-Enterprise-Diagnostic-Provider > Admin

Then:

  1. Click Filter Current Log

  2. Search for Event ID 813, which indicates that a policy was processed and applied by the device.

📄 Example Log Output (Descriptive Format):

When the policy is correctly applied, you should see an event with details similar to the following:

  • Policy Name: DisableDeviceDelete

  • Policy Area: System (indicating the category within the CSP structure)

  • Enrollment ID: A unique identifier generated during MDM enrollment, for example, B1E9301C-8666-412A-BA2F-3BF8A55BFA62

  • Current User: Device (indicates device-level application; it may show “User” if applied at user level)

  • Integer Value (Int): 0x1 means the policy is enabled (i.e., the delete button is disabled); 0x0 means it is not enforced

  • Enrollment Type: 0x6 (indicating the device is MDM-managed)

  • Scope: 0x0 for device-level policies, 0x1 for user-level policies

💡 Pro Tip ⚠️ Values like Enrollment ID, Scope, and User Context may vary depending on your deployment. Always ensure the policy name and the configured value match what was defined in Microsoft Intune.

Troubleshooting Checklist:

  • ✅ Ensure the device is included in the correct Azure AD group targeted by the policy

  • 🔄 Confirm the device has recently synced with Intune

  • ⚔️ Check for conflicts with other configuration profiles

  • 🔧 You can trigger a manual sync via the Company Portal app or the Intune Admin Center

  • 📚 For deeper analysis, consult the Microsoft Learn CSP documentation or enable advanced MDM diagnostic logs

📚 More Information

To deepen your understanding of how to configure and manage the Disable Device Delete policy using Microsoft Intune, refer to the following Microsoft Learn resources:

Thank you!

🖥️ Ricardo Barbosa

📘 MCT Microsoft Certified Trainer | ☁️ Cloud Architect

🌐 Technology Director - https://altelix.com

Originally published on LinkedIn · July 4, 2025 · read the original article
Tags:
MicrosoftIntune
EndpointManagement
Windows11
DeviceManagement
ModernWorkplace
MEM
ITPro
ZeroTrust
MVPBuzz
Keep reading

The full Hardening Windows Endpoints series

One control at a time, with the exact policy paths, the detection and remediation scripts, and the reporting to prove it worked across the fleet.

Browse all articles
Need a hand

Rolling this out across a real fleet?

Reading the guide is the easy part. Designing it for thousands of devices, piloting it without breaking production and proving compliance afterwards is the hard part. That is what we do at ISolutions CloudX.

Talk to ISolutions CloudX

Written by Ricardo Barbosa, Microsoft MVP and MCT. New guide every Wednesday and Friday. Follow on LinkedIn to get the next one.

Posts Sugeridos

Control Diagnostic Data Deletion on Windows Devices Using Intune | CyberCloudOps Blog