Permanently delete item

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.

Permanently deletes an item from deleted items.

Currently, deleted items functionality is only supported for the group and user resources. You can permanently delete an item from deleted items. But, once an item is permanently deleted, it cannot be restored.

Prerequisites

One of the following scopes is required to execute this API: * For users: User.ReadWrite.All or Directory.AccessAsUser.All * For groups: Group.ReadWrite.All or Directory.AccessAsUser.All

HTTP request

DELETE /directory/deleteditems/{id}

Request headers

Name Description
Authorization Bearer <code> Required
Accept application/json

Request body

Do not supply a request body for this method.

Response

If successful, this method returns 204, No Content response code. It does not return anything in the response body.

Example

Request
DELETE https://graph.microsoft.com/beta/directory/deleteditems/46cc6179-19d0-473e-97ad-6ff84347bbbb
Response

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 204 No Content