---
title: "Delete a comment from a post"
method: DELETE
path: "/posts/{id}/comments/{commentId}"
tags: ["Posts"]
---

# Delete a comment from a post

`DELETE /posts/{id}/comments/{commentId}`

Deletes a comment and its replies. Only the comment author (the user who created the API token) can delete it.

## Path parameters

- `id` string, required
- `commentId` string, required

## Response `204`

Comment deleted

## Other responses

- `401` — Unauthorized
- `403` — Only the comment author can delete it
- `404` — Post or comment not found
- `429` — Rate limit exceeded
- `500` — Internal server error

---

[API](https://skmtc.net/planable/apis/planable-public-api.md) · [All operations](https://skmtc.net/planable/apis/planable-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/planable/planable-public-api/revisions/e91a4f756dfe/schema)
