---
title: "Delete a comment"
method: DELETE
path: "/comments/{commentId}"
tags: ["Comments"]
---

# Delete a comment

`DELETE /comments/{commentId}`

Delete a comment from a post. Only the author of the comment can delete it.

## Path parameters

- `commentId` string, uuid, required

## Response `200`

Comment deleted successfully

- Comment — A comment on a post
  - `id` string, uuid — Unique identifier for the comment
  - `message` string — The comment text. Mentions use the format @[Display Name](userId)
  - `postId` string, uuid — The post this comment belongs to
  - `createdAt` string, date-time — When the comment was created
  - `updatedAt` string, date-time — When the comment was last updated
  - `user` CommentUser — User who created a comment
    - `id` string, uuid
    - `firstName` string, nullable
    - `lastName` string, nullable
    - `email` string, email

## Other responses

- `401` — Unauthorized - Missing or invalid API key
- `403` — Forbidden - Insufficient permissions
- `404` — Not Found - Resource does not exist

---

[API](https://skmtc.net/tryordinal/apis/ordinal-agency-api.md) · [All operations](https://skmtc.net/tryordinal/apis/ordinal-agency-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tryordinal/ordinal-agency-api/versions/f0063bbd9805/schema)
