ts.cmt.delete

Soft-delete a comment (owner-only).

Soft-delete a comment (owner-only).

Requires authentication

Description

Soft-deletes a comment. The comment content is replaced with “[deleted]” but the record is preserved to maintain thread structure. Only the comment author can delete their own comments.

Parameters

NameTypeRequiredDefaultDescription
idstringYesComment ID

Response

Returns the deletion confirmation.

{
  "deleted_at": "2026-02-12T10:20:00Z",
  "id": "cmt_a1b2c3d4e5f6"
}

Errors

CodeDescription
not_authenticatedNo active login for this session
invalid_inputComment ID is required
not_foundComment with this ID does not exist
unauthorizedOnly the comment author can delete

Examples

Delete a comment

Request:

{
  "id": "cmt_a1b2c3d4e5f6"
}

Response:

{
  "deleted_at": "2026-02-12T10:20:00Z",
  "id": "cmt_a1b2c3d4e5f6"
}