Method: liveChatBans.delete

Removes a permanent ban that prevents a specific user from contributing to a live chat, enabling the user to rejoin the chat. The API request must be authorized by the channel owner or a moderator of the live chat associated with the ban. Temporary bans can't be removed with this method. If the specified user isn't banned, the method succeeds with an HTTP 204 No Content status code.

For method-specific error responses, see liveChatBans.delete errors. For code examples, see liveChatBans.delete code snippets.

HTTP request

DELETE https://youtube.googleapis.com/youtube/v3/liveChat/bans

The URL uses gRPC Transcoding syntax.

Query parameters

Parameters
id

string

Required. Identifies the permanent chat ban to remove. The value uniquely identifies both the ban and the chat (use the id returned by liveChatBans.insert for a permanent ban).

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/youtube
  • https://www.googleapis.com/auth/youtube.force-ssl

For more information, see the OAuth 2.0 Overview.