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 卡)。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-02-19 (世界標準時間)。
[null,null,["上次更新時間: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"]]