directory resource type (deleted items)

Namespace: microsoft.graph

Represents a deleted item in the directory. When an item is deleted, it is added to the deleted items "container". Deleted items will remain available to restore for up to 30 days. After 30 days, the items are permanently deleted.

Currently, deleted items functionality is only supported for the application, group and user resources.


Method Return Type Description
Get deleted item directoryObject Gets the properties of a deleted item.
Restore deleted item directoryObject Restores a recently deleted item.
List deleted items directoryObject collection Gets a list of recently deleted items.
Permanently delete an item None Permanently deletes an item.
List deleted items owned by a user directoryObject collection Lists directory items owned by a user.


Relationship Type Description
deletedItems directoryObject collection Recently deleted items. Read-only. Nullable.

JSON representation

Here is a JSON representation of the resource.



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