---
title: "Delete Comment"
method: DELETE
path: "/comments/{comment_id}"
tags: ["comments"]
---

# Delete Comment

`DELETE /comments/{comment_id}`

## Request

- Base URL: `https://api.codeofpaper.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.codeofpaper.com/comments/{comment_id}`
- Auth: HTTP bearer

Soft-delete a comment. Only the author can delete.

Comments with replies are soft-deleted (content hidden).
Comments without replies are hard-deleted.

## Path parameters

- `comment_id` string, required

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/codeofpaper/apis/code-of-paper-dev-api.md) · [All operations](https://skmtc.dev/codeofpaper/apis/code-of-paper-dev-api/llms.txt) · [OpenAPI document](https://skmtc.dev/codeofpaper/apis/code-of-paper-dev-api/revisions/94ea47fd4aa1?raw)
