Restore deleted Device from Entra ID

Pradeep Narangoda 0 Reputation points

Hi, I accidentally deleted the device from Entra ID. How can I restore that device?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,802 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Vasil Michev 96,836 Reputation points MVP

    Unfortunately, you cannot, as devices are not supported for the soft-delete functionality. As mentioned in the documentation:

    Currently, deleted items functionality is only supported for the application, servicePrincipal, externalUserProfile, group, administrative unit, pendingExternalUserProfile, and user resources.

    0 comments No comments

  2. Sandeep G-MSFT 14,916 Reputation points Microsoft Employee

    @Pradeep Narangoda

    Thank you for posting this in Microsoft Q&A.

    As Vasil Michev mentioned above there is no option to recover deleted device in Entra ID. Recycle bin is not yet supported and you can’t recover deleted devices, it’s a feature that MSFT working on.

    You can refer the same in

    However, if you are trying recover and login to any of the Entra ID joined device you can try to follow below steps,

    Open the command prompt as an administrator

    Enter dsregcmd /forcerecovery (You need to be an administrator to perform this action).

    Click “Sign in” in the dialog that opens up and continue with the sign in process.

    Sign out and sign in back to the device to complete the recovery.

    Just for good measure I gave user temporarly administrator priviledges & followed the steps initially to remove the device


    1. dsregcmd /debug /leave
    2. Reboot
    3. Add user to local-admins
    4. Log-off & on again

    You can also submit feedback in Azure feedback portal.

    Let us know if you have any further questions.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments