Restore deleted item


APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported.

Restores a recently deleted item from deleted items.

Currently, deleted items functionality is only supported for the application, group and user resources. If an item was accidentally deleted, you can fully restore the item.

A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted.


One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

  • For applications: Application.ReadWrite.OwnedBy, Application.ReadWrite.All, Directory.ReadWrite.All, Directory.AccessAsUser.All
  • For users: User.ReadWrite.All, Directory.AccessAsUser.All
  • For groups: Group.ReadWrite.All, Directory.AccessAsUser.All

HTTP request

POST /directory/deleteditems/{id}/restore

Request headers

Name Description
Authorization Bearer <token> Required
Content-type application/json

Request body

Do not supply a request body for this method.


If successful, this method returns a 200 OK response code and a directoryObject object in the response body.





Note: The response object shown here may be truncated for brevity. All of the properties will be returned from an actual call.

HTTP/1.1 200 OK
Content-type: application/json