Method: enterprises.devices.delete
HTTP 请求
DELETE https://androidmanagement.googleapis.com/v1/{name=enterprises/*/devices/*}
网址采用 gRPC 转码语法。
路径参数
参数 |
name |
string
设备的名称,格式为 enterprises/{enterpriseId}/devices/{deviceId} 。
|
查询参数
参数 |
wipeDataFlags[] |
enum (WipeDataFlag )
用于控制设备擦除行为的可选标志。
|
wipeReasonMessage |
string
可选。在个人设备上擦除工作资料之前向用户显示的短消息。这对公司自有设备没有影响。消息的长度上限为 200 个字符。
|
响应正文
如果成功,响应正文将为空的 JSON 对象。
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/androidmanagement
如需了解详情,请参阅 OAuth 2.0 Overview。
WipeDataFlag
用于控制删除设备时数据擦除行为的标志。默认情况下,系统会清除所有用户数据和恢复出厂设置保护机制数据。
枚举 |
WIPE_DATA_FLAG_UNSPECIFIED |
系统会忽略此值。 |
PRESERVE_RESET_PROTECTION_DATA |
保留设备上的恢复出厂设置保护机制数据。 |
WIPE_EXTERNAL_STORAGE |
此外,请擦除设备的外部存储空间(例如 SD 卡)。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-02-19。
[null,null,["最后更新时间 (UTC):2025-02-19。"],[[["Permanently deletes a device, wiping its data and removing it from enterprise device lists."],["The wipe behavior can be customized using optional flags like `wipeDataFlags` and `wipeReasonMessage`."],["Requires authorization with the `https://www.googleapis.com/auth/androidmanagement` scope."],["The request body should be empty, and a successful deletion results in an empty response body."],["Device deletion uses the `DELETE` method with the device name as a path parameter."]]],["This document outlines the process for deleting a device via a `DELETE` HTTP request to the specified URL, requiring an empty request body. The device name is provided as a path parameter. Optional query parameters include `wipeDataFlags`, for managing data wiping behavior, and `wipeReasonMessage`, a user-facing message for personal devices. Successful deletion returns an empty JSON object. Deletion also involves wiping the device and removing it from device lists. Authentication requires the `androidmanagement` OAuth scope.\n"]]