Skip to content

Latest commit

 

History

History
100 lines (76 loc) · 4.43 KB

File metadata and controls

100 lines (76 loc) · 4.43 KB
title Automatically Hide Devices With Cleanup Rules
description Intune's device cleanup rules offer a simple, automated way to ensure that only actively managed devices remain visible in the admin center. Learn more about device cleanup rules and how to configure them.
ms.date 10/08/2025
ms.topic how-to
author paolomatarazzo
ms.author paoloma
ms.reviewer acabello
ms.collection
M365-identity-device-management

Device cleanup rules

Managing a dynamic device fleet means constantly tracking devices that come and go—due to upgrades, user turnover, or inactivity. Intune's device cleanup rules help keep the admin center clean by automatically hiding stale records.

Device cleanup rules in Intune run on a schedule and automatically hide records of devices that didn't check in for a specified period (for example, 90 days). These rules:

  • Hide devices from the Intune portal and reports.
  • Don't trigger any actions on the device (no wipe or retire).
  • Allow cleaned-up devices to reappear if they check in before their device certificate expires.
  • Require re-enrollment after the certificate expires.
  • Aren't available for Jamf-managed devices.

Prerequisites

:::row::: :::column span="1"::: [!INCLUDE rbac] :::column-end::: :::column span="3":::

To configure device cleanup rules, use an account with at least one of the following roles:

  • Intune Service Administrator
  • Custom role that includes:
    • The permission Managed Device Cleanup Rules/Update
    • The permission Managed Device Cleanup Settings/Update
    • Permissions that provide visibility into and access to managed devices in Intune (for example, Organization/Read, Managed devices/Read) :::column-end::: :::row-end:::

How to create a device cleanup rule

  1. In the Microsoft Intune admin center, select Devices > Organize devices > Device cleanup rules.

  2. Select Create.

  3. In Basics, enter the following properties:

    • Name: Enter a descriptive name for the rule.
    • Description: Enter a description for the rule. This setting is optional.
    • Platform: Select the platform that the rule applies to. The options are:
      • All platforms
      • Android (AOSP)
      • Android (fully managed/dedicated/corporate-owned work profile)
      • Android (device administrator)
      • Android (personally-owned work profile)
      • ChromeOS
      • iOS/iPadOS
      • macOS
      • Windows
      • Windows Holographic
      • visionOS
      • tvOS

    You can create one rule per platform. The rule applies to all devices in your organization with the platform you select.

Important

If both platform-specific and All platforms rules exist, the one with fewer days will be applied.

  1. Select Next.

  2. In Rule settings > Remove devices that haven't checked in for this many days, enter a number between 30 and 270.

    This setting determines how many days a device must check in with the Intune service before the device is considered stale or inactive. If a device doesn't check in before the period ends, the device is cleaned up.

    [!TIP] Select Preview affected devices to get a list of devices that didn't check in during the specified number of days.

  3. Select Next.

  4. In Review + create, review your settings. When you select Create, your changes are saved, and the rule applies.

Note

Devices hidden from Intune aren't removed from Microsoft Entra ID. For more information about removing devices from Microsoft Entra ID, see Manage stale devices in Microsoft Entra ID.

Device cleanup rules logging

The Intune audit logs show the devices hidden by the device cleanup rules. In the logs, filter by Activity name > Device set to be hidden from admin by Device Cleanup Rule [Your Rule Name].