Stay organized with collections Save and categorize content based on your preferences.
Deletes a named space. Always performs a cascading delete, which means that the space's child resources—like messages posted in the space and memberships in the space—are also deleted. For an example, see Delete a space.
Supports the following types of authentication:
App authentication with administrator approval and the authorization scope:
https://www.googleapis.com/auth/chat.app.delete
(only in spaces the app created)User authentication with one of the following authorization scopes:
https://www.googleapis.com/auth/chat.delete
https://www.googleapis.com/auth/chat.import
(import mode spaces only)useAdminAccess
is true
, and the following authorization scope is used:
https://www.googleapis.com/auth/chat.admin.delete
DELETE https://chat.googleapis.com/v1/{name=spaces/*}
The URL uses gRPC Transcoding syntax.
Path parameters Parametersname
string
Required. Resource name of the space to delete.
Format: spaces/{space}
useAdminAccess
boolean
Optional. When true
, the method runs using the user's Google Workspace administrator privileges.
The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege.
Requires the chat.admin.delete
OAuth 2.0 scope.
The request body must be empty.
Response bodyIf successful, the response body is an empty JSON object.
Requires one of the following OAuth scopes:
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
For more information, see the Authorization guide.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-25 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-25 UTC."],[[["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."]]],["This describes how to delete a named space using the Chat API, including its child resources. A `DELETE` request is sent to `https://chat.googleapis.com/v1/{name=spaces/*}`. The `name` path parameter specifies the space to delete. The `useAdminAccess` query parameter enables administrator privileges, which requires the `chat.admin.delete` OAuth scope and specific admin rights. The request body must be empty, and a successful deletion returns an empty JSON object. Authorization requires specific OAuth scopes.\n"]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4