---
title: "Delete comment"
method: DELETE
path: "/social-media/comments/{commentId}"
tags: ["📸 Social Media"]
---

# Delete comment

`DELETE /social-media/comments/{commentId}`

The API endpoint enables users to delete a specific comment on a post based on the comment ID provided in the path variable.

When accessing this endpoint and specifying the comment ID in the URL, the corresponding comment will be removed from the post.

## Response `200`

Delete comment

- object
  - `data` object
    - `deletedComment` object
      - `__v` number
      - `_id` string
      - `author` string
      - `content` string
      - `createdAt` string
      - `postId` string
      - `updatedAt` string
  - `message` string
  - `statusCode` number
  - `success` boolean

---

[API](https://skmtc.net/hiteshchoudhary-ssesph/apis/freeapi.md) · [All operations](https://skmtc.net/hiteshchoudhary-ssesph/apis/freeapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hiteshchoudhary-ssesph/freeapi/versions/a9f3a290e4dc/schema)
