Deletes a message. For an example, see Delete a message.
Requires authentication. Fully supports service account authentication and user authentication. User authentication requires the chat.messages
authorization scope.
HTTP request
DELETE https://chat.googleapis.com/v1/{name=spaces/*/messages/*}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
name |
Required. Resource name of the message that you want to delete, in the form Example: |
Query parameters
Parameters | |
---|---|
force |
When Only applies when authenticating as a user. Has no effect when authenticating with a service account. |
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.import
https://www.googleapis.com/auth/chat.messages
For more information, see the Authorization guide.