Error when deleting a device from Autopilot

Nadim 0 Reputation points
2023-03-24T15:16:23.0266667+00:00

Hello team,

Kindly note that I have looked around the Q&A but didn't find my answer, therefore, I am opening a new one.

We have several windows machines that we need to remove from autopilot enrollment, however, these devices will be managed in Intune for a brief time, however, when I try to delete a machine, I receive a failed error.

Failed to delete device record. Device XXXXX deletion failed. Please delete the associated Intune device before deleting this Autopilot device record.

Attached is a screenshot.

.image

Thanks!

Nadim.

Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,324 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Lu Dai-MSFT 28,346 Reputation points
    2023-03-27T01:26:17.4833333+00:00

    @Nadim Thanks for posting in our Q&A. From your description, did you mean that you want to delete autopilot devices? If there is anything misunderstanding, feel free to let us know.

    For this issue, it is suggested to try the following steps to see if the device can be deleted:

    1.Try to delete it via Graph Explorer:

    DELETE /deviceManagement/managedDevices/{managedDeviceId}

    https://learn.microsoft.com/en-us/graph/api/intune-devices-manageddevice-delete?view=graph-rest-1.0

    2.Try to delete the device in Microsoft store for business. After login, go to Manage > Devices and find the device, try to delete it to see if it can be deleted.

    However, if the issue still persists, you can open case to see if it can be deleted in the background. Here is the support link:

    https://learn.microsoft.com/en-us/mem/get-support

    Hope it will help.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.