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

# Delete a comment

`DELETE /api/comments/{id}`

## Request

- Base URL: `https://trydock.ai`
- URL: `https://trydock.ai/api/comments/{id}`
- Auth: HTTP bearer

Author only.

## Path parameters

- `id` string, required

## Response `200`

Deleted.

- object
  - `ok` true, required

## Other responses

- `403`: Not the author.

---

[API](https://skmtc.dev/trydock/apis/dock-rest-api.md) - [All operations](https://skmtc.dev/trydock/apis/dock-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/trydock/apis/dock-rest-api/revisions/dd96ae96a412?raw)
