Microsoft Entra to Add Soft Delete Capability for Devices

  • Post author:
  • Post category:Microsoft Entra / News
  • Post last modified:
  • Reading time:3 mins read
  • Post published:

Microsoft have made some significant developments in their “recycle bin” style features recently, enabling admins to restore objects deleted from Microsoft Entra before they are permanently deleted.

A prime example of this is the recent update allowing Cloud Security Groups to enter a “soft delete” state when they are removed, rather than being deleted instantly, a topic I covered in my previous article, Restore Deleted Cloud Security Groups in Microsoft Entra.

This particular post is less of a “how-to” and more of a “what’s coming”. I have been keeping an eye on a specific Graph API that would enable the restoration of deleted devices from Microsoft Entra, something not currently possible. The API endpoint is:

https://graph.microsoft.com/beta/directory/deletedItems/microsoft.graph.device

Note: You can use the above endpoint using the Invoke-MgGraphRequest cmdlet in Microsoft Graph PowerShell.

While it responds correctly to a GET request, it appears the back-end capabilities aren’t quite live yet, as even after a device is deleted, the response remains blank. Furthermore, the delete function within the Microsoft Entra Devices blade still reports that deletion is a permanent action (as of December 2026).

I did a little further digging and noticed that when the Devices blade loads, so do a number of functions that would otherwise load hidden pages still in development

Deleted Devices React View
Deleted Devices React View

It is clear that these pages are not “hidden” as such, because we are authorised to view them. So, by making an educated guess regarding the direct URL, we can successfully load the Deleted Devices (preview) page.

(Note: I have decided not to share the direct URL here, but it isn’t difficult to deduce…)

Deleted Devices Preview
Deleted Devices Preview

The page is fairly simple, but overall, it is nice to know these capabilities are coming. accidentally deleted devices can cause huge headaches, something I have experienced first hand with constant login loops.

So, based on the behaviour of other directory objects that support soft-delete, we can assume the functionality will be similar. I have put together a quick FAQ based on these observations:

When will devices be permanently deleted after they are soft deleted?

Devices are permanently deleted automatically 30 days after they are deleted.

Can you delete a device permanently before 30 days?

Yes. Just select the device from the list and click Delete permanently.

Can you restore devices during the 30 days?

Yes. Just select the device from the click and click Restore devices.

Can you restore devices after the 30 days?

No. The device is automatically permanently deleted.

Daniel Bradley

Daniel Bradley is a UK-based technical architect and Microsoft MVP in Security. He specialises in Microsoft Entra, Intune, and Microsoft Graph PowerShell and is the author of Microsoft Graph PowerShell for Administrators. He writes and edits Our Cloud Network using experience gained from working with Microsoft cloud environments.

This Post Has One Comment

  1. Tim D’Annecy

    Great write up! Please share the URL. This new feature could be helpful dealing with hybrid devices.

Leave a Reply