Permanently delete item
Namespace: microsoft.graph
Permanently deletes an item from deleted items.
Currently, deleted items functionality is only supported for the application, group and user resources. You can permanently delete an item from deleted items. But, once an item is permanently deleted, it cannot be restored.
Permissions
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.
For applications:
Permission type | Permissions (from least to most privileged) |
---|---|
Delegated (work or school account) | Application.ReadWrite.All, Directory.ReadWrite.All |
Delegated (personal Microsoft account) | Not supported. |
Application | Application.ReadWrite.OwnedBy, Application.ReadWrite.All |
The requestor needs to have one of the following roles: Global Administrator or Application Administrator.
For users:
Permission type | Permissions (from least to most privileged) |
---|---|
Delegated (work or school account) | User.ReadWrite.All |
Delegated (personal Microsoft account) | Not supported. |
Application | Not supported. |
The signed-in user needs to have one of the following roles: Global Administrator or User Administrator.
For groups:
Permission type | Permissions (from least to most privileged) |
---|---|
Delegated (work or school account) | Group.ReadWrite.All |
Delegated (personal Microsoft account) | Not supported. |
Application | Not supported. |
The requestor needs to have one of the following roles: Global Administrator or Groups Administrator.
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/v1.0/directory/deletedItems/{object-id}
Response
Note: The response object shown here might be shortened for readability.
HTTP/1.1 204 No Content
Saran dan Komentar
Kirim dan lihat umpan balik untuk