directory resource type (deleted items)

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

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 Office 365 groups and users.

Methods

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.

Properties

Property Type Description
id String A unique identifier for the object; for example, 12345678-9abc-def0-1234-56789abcde. Key. Not nullable. Read-only.

Relationships

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

JSON representation

Here is a JSON representation of the resource.

{
  "id": "String (identifier)"
}