Beam Help
Get help now

How-to · Zoho DESK

How to delete a specific article comment in Zoho Desk

Remove a single comment from a help center article.

Removing a specific comment from a Zoho Desk knowledge-base article requires a single authenticated DELETE request to the Desk REST API — there is no bulk operation, so you must supply the exact IDs for both the article and the comment you want to remove.


Why this matters


Knowledge-base articles in Zoho Desk can accumulate outdated, spam, or off-topic comments that erode the reader experience. Rather than leaving those comments visible, your team can programmatically remove individual ones without touching the article content itself. This is especially useful when managing a high-volume Help Center where manual moderation is impractical.


Step-by-step


Step 1. Identify which API variant applies to your portal setup. Zoho Desk exposes two DELETE endpoints for article comments, depending on whether your Help Center is multi-brand or single-brand:


  • Help Center–scoped endpoint: DELETE /api/v1/helpcenter/{helpcenterid}/articles/{articleid}/comments/{comment_id} [4]
  • Direct article endpoint: DELETE /api/v1/articles/{articleId}/comments/{commentId} [1]

If your portal uses multiple Help Centers (multi-brand), use the first endpoint and include the helpcenter_id. For a standard single-brand setup, the second endpoint is sufficient. [1][4]


Step 2. Gather the three required identifiers before making the call:


  • helpcenter_id (multi-brand only) — the unique ID of the Help Center where the article lives [4]
  • article_id / articleId — the numeric ID of the knowledge-base article containing the comment [1][4]
  • comment_id / commentId — the numeric ID of the specific comment to delete [1][4]

You can retrieve these IDs via the corresponding GET endpoints for articles and comments, or by inspecting the Zoho Desk UI URL while viewing the article.


Step 3. Construct and send the DELETE request. For the Help Center–scoped variant, the call looks like this:


DELETE /api/v1/helpcenter/{helpcenter_id}/articles/{article_id}/comments/{comment_id}

Authenticate using your OAuth 2.0 bearer token in the Authorization header, as required by all Zoho Desk API calls. [4]


For the direct article variant:


DELETE /api/v1/articles/{articleId}/comments/{commentId}

Replace each placeholder with the real IDs collected in Step 2. [1]


Step 4. In Python, using the Zoho Desk SDK wrapper, the call for the Help Center–scoped endpoint is:


client.delete_article_comment(
    helpcenter_id="<your_helpcenter_id>",
    article_id="<your_article_id>",
    comment_id="<your_comment_id>"
)

And for the direct article endpoint:


client.delete_article_comment_2(
    articleId="<your_article_id>",
    commentId="<your_comment_id>"
)

Both methods issue a DELETE HTTP request to their respective paths and return the API response. [1][4]


Step 5. Check the HTTP response code. A 200 OK or 204 No Content response confirms the comment was removed. Any 4xx response indicates a problem with the IDs or authentication — see the pitfalls section below.


Common pitfalls


  • Wrong endpoint for your portal type. Using the direct /api/v1/articles/… endpoint when your portal is multi-brand may return a 404 because the article is scoped under a specific Help Center. Switch to the helpcenter/{helpcenter_id}/… path in that case. [4]
  • Swapped or missing IDs. Both endpoints require the article ID *and* the comment ID as separate path parameters. Passing only one, or confusing the two, will result in a 404 or 400 error. [1][4]
  • Insufficient OAuth scopes. Ensure the OAuth token used has write/delete permissions for the Desk Knowledge Base scope. A token scoped only for ticket operations will be rejected.
  • Optional p parameter. Both endpoint definitions accept an optional p dictionary for additional query parameters. In most delete scenarios this can be left as None, but double-check if your organisation enforces department-level filtering. [1][4]

> Note: Beam Help is an independent expert support resource for Zoho products — we are not official Zoho support. For billing or account-level issues, contact Zoho directly.


What to check


  • Confirm the comment is gone by issuing a GET request to the article's comments list and verifying the deleted comment_id no longer appears.
  • Verify you targeted the correct comment — deletions via the API are permanent and cannot be undone through the UI or API.
  • Review audit logs in your Zoho Desk portal (if enabled) to ensure the deletion event is recorded for compliance purposes.

Sources cited

  1. [1] DELETE /api/v1/articles/{articleId}/comments/{commentId}
  2. [2] Zoho Analytics On-Premise API
  3. [3] Zoho Community | Connect, network, and share on Zoho Forums
  4. [4] DELETE /api/v1/helpcenter/{helpcenter_id}/articles/{article_id}/comments/{comment_id}
  5. [5] Editing Estimates