Method: spaces.messages.delete

Stay organized with collections Save and categorize content based on your preferences.

Deletes a message. For example usage, see Delete a message.

Requires authentication. Fully supports service account authentication.

HTTP request

DELETE https://chat.googleapis.com/v1/{name=spaces/*/messages/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. Resource name of the message to be deleted, in the form "spaces/*/messages/*"

Example: spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB

Query parameters

Parameters
force

boolean

When true, also deletes threaded replies to the deleted message. Default value is false. Required when authenticating with user credentials.

Request body

The request body must be empty.

Response body

If successful, the response body is empty.

Authorization Scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/chat.bot
  • https://www.googleapis.com/auth/chat.messages

For more information, see the OAuth 2.0 Overview.