Deletes a chat message. The request must be authorized by the channel owner, a moderator of the live chat, or the author of the message.
Poll messages can't be deleted with this method; use liveChatMessages.transition to close an active poll. If successful, this method returns an HTTP 204 (No Content) response.
For method-specific error responses, see liveChatMessages.delete errors. For code examples, see liveChatMessages.delete code snippets.
HTTP request
DELETE https://youtube.googleapis.com/youtube/v3/liveChat/messages
The URL uses gRPC Transcoding syntax.
Query parameters
| Parameters | |
|---|---|
id |
Required. Specifies the YouTube live chat message ID of the resource to delete. |
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/youtubehttps://www.googleapis.com/auth/youtube.force-ssl
For more information, see the OAuth 2.0 Overview.