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