Skip to content

DELETE/comments/{id}

Delete comment

Permanently remove a comment. Returns deleted resource. Triggers `comments.deleted` webhook.

Parameters 1

NameTypeDescription
idrequiredpath · integerResource identifier

ReturnsComment

Bearer token required

Response examples

200Deleted comment

application/json example derived from schema

{
  "id": 1,
  "postId": 1,
  "userId": 1,
  "body": "How does this compare to the approach described in the official docs?",
  "likes": 16,
  "createdAt": "2023-04-28T06:59:47.906Z"
}
404404 — resource not found

application/json

{
  "error": {
    "status": 404,
    "message": "users #999 not found"
  }
}

Released under the MIT License.