Skip to content

Soft-delete a comment

DELETE
/comments/{id}

Authors can always delete their own (requires comments.delete.own, Base default). Moderators can delete any comment (requires comments.delete.any, Admin only). Soft-deletes via deleted_at + empties body/body_html; the counter trigger decrements posts.comment_count.

id
required
string format: uuid

Deleted

Authentication required, missing, or invalid

object
error
required

Human-readable error summary

string
Example
the request could not be completed
Example
{
"error": "authentication required: sign in and retry with a valid session or API token"
}

Authenticated but missing required capabilities

object
error
required

Human-readable error summary

string
Example
the request could not be completed

Resource not found

object
error
required

Human-readable error summary

string
Example
the request could not be completed