Method: comments.delete

Deletes a comment.

Only the comment's author can call this method to delete a comment. Channel owners and moderators can hide unwanted comments by calling comments.setModerationStatus with moderationStatus set to rejected.

For error details, see comments.delete errors. For code examples, see comments.delete code snippets.

HTTP request

DELETE https://youtube.googleapis.com/youtube/v3/comments

The URL uses gRPC Transcoding syntax.

Query parameters

Parameters
id

string

Required. The id parameter specifies the comment ID for the resource being deleted.

Request body

The request body must be empty.

Response body

If successful, the response body is empty.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/youtube.force-ssl

For more information, see the OAuth 2.0 Overview.