刪除具名空間。一律執行連鎖刪除作業,也就是一併刪除聊天室的子項資源,例如聊天室中發布的訊息和聊天室成員。如需範例,請參閱「刪除聊天室」。
支援下列類型的驗證:
-
https://www.googleapis.com/auth/chat.app.delete
(僅限應用程式建立的聊天室)
使用者驗證,並使用下列其中一個授權範圍:
https://www.googleapis.com/auth/chat.delete
https://www.googleapis.com/auth/chat.import
(僅限匯入模式聊天室)- 使用者驗證會在管理員帳戶通過驗證時授予管理員權限,
useAdminAccess
為true
,且使用下列授權範圍:https://www.googleapis.com/auth/chat.admin.delete
HTTP 要求
DELETE https://chat.googleapis.com/v1/{name=spaces/*}
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 | |
---|---|
name |
必要欄位。要刪除的聊天室資源名稱。 格式: |
查詢參數
參數 | |
---|---|
useAdminAccess |
(選用步驟) 時,這個方法會使用使用者的 Google Workspace 管理員權限執行。 通話使用者必須是具備「管理即時通訊和聊天室對話」權限的 Google Workspace 管理員。 需要 |
要求主體
要求主體必須為空白。
回應主體
如果成功,回應主體會是空白的 JSON 物件。
授權範圍
需要下列其中一種 OAuth 範圍:
https://www.googleapis.com/auth/chat.app.delete
https://www.googleapis.com/auth/chat.admin.delete
https://www.googleapis.com/auth/chat.import
https://www.googleapis.com/auth/chat.delete
詳情請參閱授權指南。