Forum Discussion

Alexander Vanyurikhin's avatar
Alexander Vanyurikhin
Iron Contributor
May 15, 2018
Solved

Remove not active devices

Hey,

Anyone knows if there is an option to do auto-clean up of devices which is not active? Like if devices is not connecting for more than a month, it should be deleted automaticaly.

Or i can do that only by using Graph API and scripting that?

  • Hey Alexander,

     

    At the moment it's only available through Graph API. A sample script can be found here:

    https://blogs.technet.microsoft.com/smeems/2018/03/07/device-cleanup-with-graph-api/

     

    Best regards,

    Ruud Gijsbers

5 Replies

  • RuudGijsbers's avatar
    RuudGijsbers
    Iron Contributor

    Hi Alexander,

     

    In the meantime it is also available through the Intune Portal. You can create a device cleanup rule. Per Larsen has described this on his blog:

    https://osddeployment.dk/2018/07/08/automatic-device-cleanup-in-intune/

     

    Best regards,

    Ruud Gijsbers

    • Alexander Vanyurikhin's avatar
      Alexander Vanyurikhin
      Iron Contributor

      Yes, that feature was released after my post. I'm using that now, however it would be nice to minimize time from 90 to 30 days.

  • RuudGijsbers's avatar
    RuudGijsbers
    Iron Contributor

    Hey Alexander,

     

    At the moment it's only available through Graph API. A sample script can be found here:

    https://blogs.technet.microsoft.com/smeems/2018/03/07/device-cleanup-with-graph-api/

     

    Best regards,

    Ruud Gijsbers

Resources