永久删除项目Permanently delete item

命名空间:microsoft.graphNamespace: 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

要调用此 API,需要以下权限之一。要了解详细信息,包括如何选择权限的信息,请参阅权限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) 所有的 Directory.accessasuser.all,all,all,AllApplication.ReadWrite.All, Directory.ReadWrite.All, Directory.AccessAsUser.All
委派(个人 Microsoft 帐户)Delegated (personal Microsoft account) 不支持。Not supported.
应用程序Application Application.ReadWrite.OwnedBy、Application.ReadWrite.All、Directory.Read.AllApplication.ReadWrite.OwnedBy, Application.ReadWrite.All

对于用户:For users:

权限类型Permission type 权限(从最低特权到最高特权)Permissions (from least to most privileged)
委派(工作或学校帐户)Delegated (work or school account) User.ReadWrite.All、Directory.AccessAsUser.AllUser.ReadWrite.All, Directory.AccessAsUser.All
委派(个人 Microsoft 帐户)Delegated (personal Microsoft account) 不支持。Not supported.
应用程序Application User.ReadWrite.AllUser.ReadWrite.All

对于组:For groups:

权限类型Permission type 权限(从最低特权到最高特权)Permissions (from least to most privileged)
委派(工作或学校帐户)Delegated (work or school account) Group.ReadWrite.All、Directory.AccessAsUser.AllGroup.ReadWrite.All, Directory.AccessAsUser.All
委派(个人 Microsoft 帐户)Delegated (personal Microsoft account) 不支持。Not supported.
应用程序Application Group.ReadWrite.AllGroup.ReadWrite.All

HTTP 请求HTTP request

DELETE /directory/deletedItems/{id}

请求标头Request headers

名称Name 说明Description
AuthorizationAuthorization Bearer <code>。必需Bearer <code> Required
接受Accept application/jsonapplication/json

请求正文Request body

请勿提供此方法的请求正文。Do not supply a request body for this method.

响应Response

如果成功,此方法返回 204 No Content 响应代码。它不在响应正文中返回任何内容。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 may be truncated for brevity. All of the properties will be returned from an actual call.

HTTP/1.1 204 No Content