در حال بارگذاری…
Deletes a comment by its ID.
| Permission | Description |
|---|---|
| view (commentable) | Must have view permission on the target resource |
comments.delete | Delete your own comments |
comments.delete_any | Delete any comment (admin or moderator) |
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| comment-id | int | Yes | ID of the comment to delete | 123 |
Comment was successfully deleted. Despite the 204, this endpoint does return a JSON body — a localized confirmation message.
HTTP defines 204 as bodyless, so some clients and proxies discard it; treat the body as informational,
not something to depend on.
{
"message": "Comment deleted successfully."
}
Localized from messages.comments.deleted_successfully (fa: “نظر با موفقیت حذف شد.”).
| Status | Description | Reference |
|---|---|---|
| 401 | Unauthorized | Authentication error |
| 403 | Forbidden (no permission) | Permission error |
| 404 | Not found | Not-found error |