Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Device deletion from Intune

Abishek1998
Tera Contributor

Hi all,

 

I need to get the device ID from intune and delete it using the flow action in servicenow. But I'm not sure about those steps. Intune spoke has been configured already. It'll be really helpful if somemone guides me.

1 REPLY 1

Kieran Anson
Kilo Patron

Microsoft Graph API doesn't directly provide an endpoint to retrieve recently deleted devices. You can query https://graph.microsoft.com/v1.0/deviceManagement/auditEvents but that would require extensive filtering.

 

If you're pulling devices already via Service Graph Connector, setup a staleness rule or CMDB Data Management Policy to retire devices that are not discovered after XX days