Method: spaces.delete
刪除已命名的聊天室。系統一律會執行連鎖刪除作業,也就是說,聊天室的子項資源 (例如在聊天室中發布的訊息和聊天室成員資格) 也會一併刪除。如需範例,請參閱「刪除聊天室」。
支援下列類型的驗證:
HTTP 要求
DELETE https://chat.googleapis.com/v1/{name=spaces/*}
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
name |
string
必要欄位。要刪除的聊天室資源名稱。 格式:spaces/{space}
|
查詢參數
參數 |
useAdminAccess |
boolean
選用設定。當 true 時,方法會使用使用者的 Google Workspace 管理員權限執行。 撥打的使用者必須是具備「管理即時通訊和聊天室對話」權限的 Google Workspace 管理員。 需要 chat.admin.delete OAuth 2.0 範圍。
|
回應主體
如果成功,回應主體會是空的 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
詳情請參閱授權指南。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-01-22 (世界標準時間)。
[null,null,["上次更新時間:2025-01-22 (世界標準時間)。"],[[["This request permanently deletes a space and all its child resources, including messages and memberships."],["Authentication can be performed using app authentication (with administrator approval) or user authentication (including with administrator privileges using `useAdminAccess`)."],["The request requires the space's resource name in the URL path and can optionally use the `useAdminAccess` query parameter for administrator privileges."],["Requires specific OAuth scopes for authorization, such as `chat.app.delete` or `chat.admin.delete`, as detailed in the Authorization guide."]]],[]]