Method: users.sections.delete

Deletes a section of type CUSTOM_SECTION.

If the section contains items, such as spaces, the items are moved to Google Chat's default sections and are not deleted.

For details, see Create and organize sections in Google Chat.

Requires user authentication with the authorization scope:

  • https://www.googleapis.com/auth/chat.users.sections

HTTP request

DELETE https://chat.googleapis.com/v1/{name=users/*/sections/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The name of the section to delete.

Format: users/{user}/sections/{section}

Request body

The request body must be empty.

Response body

If successful, the response body is an empty JSON object.

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/chat.users.sections

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-12-17 UTC.