GraphAPI Powershell - Delete Azure AD Device that is assosiated with non-existant autopilot record

ChristopherCoates 41 Reputation points

I have several devices that were previous part of our Windows Autpilot infrastructure. The Autopilot record has been deleted which should have removed the AAD device record (or at a minimum, allow deletion of the device)

I have tried to run several Graph powershell commands but the API keeps returning errors like device is not found.

Can anyone provide the appropriate commands to delete this record from my AAD.



Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
13,636 questions
Microsoft Graph Identity API
Microsoft Graph Identity API
A Microsoft API to access Azure Active Directory (Azure AD) resources to enable scenarios like managing administrator (directory) roles, inviting external users to an organization, and, if you are a Cloud Solution Provider (CSP), managing your customer's data.
272 questions
Windows Autopilot
Windows Autopilot
A collection of Microsoft technologies used to set up and pre-configure new devices and to reset, repurpose, and recover devices.
263 questions
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Givary-MSFT 13,396 Reputation points Microsoft Employee

    Hi @ChristopherCoates Thank you for reaching out to us.

    As I understand you are delete a device from Azure AD which is tagged as Windows Autopilot device.

    Researched on your issue and found this article,take%20a%20few%20minutes%20to%20complete.%20More%20 which has the steps to delete the device from Azure AD.

    Let me know if this article helps to resolve your issue or not.