Skip to main content

Crashes - Delete Comment

Endpoint

/i/crashes/delete_comment

Overview

Deletes one comment from a crash group. Only the comment author or global admin can delete.

Authentication

Countly API supports three authentication methods:

  1. api_key=YOUR_API_KEY
  2. auth_token=YOUR_AUTH_TOKEN
  3. countly-token: YOUR_AUTH_TOKEN

Permissions

Requires crashes Delete permission.

Request Parameters

ParameterTypeRequiredDescription
api_keyStringConditionalRequired if auth_token is not provided.
auth_tokenStringConditionalRequired if api_key is not provided.
app_idStringYesTarget app ID for validation context.
argsJSON String (Object)YesDelete payload.
args.app_idStringYesApp ID used by delete path.
args.crash_idStringYesCrash group ID.
args.comment_idStringYesComment ID to delete.

Response

Success Response

{
"result": "Success"
}

Note: this endpoint returns Success even when the comment is missing or user is not allowed to delete it.

Response Fields

FieldTypeDescription
resultStringSuccess for both applied deletes and no-op branches.

Error Responses

  • 400
{
"result": "Please provide args parameter"
}

Standard auth/permission errors from delete validation can also be returned.

Behavior/Processing

  • Finds target crash group and comment by comment_id.
  • If user is author or global admin, removes the comment from array.
  • Emits crash_deleted_comment system log action when delete is applied.
  • If comment not found / not permitted, returns Success without changes.

Database Collections

CollectionUsed forData touched by this endpoint
countly.app_crashgroups{appId}Crash commentsPulls matching comment entry when authorized.
countly.systemlogsAudit trailReceives crash_deleted_comment action when delete occurs.

Examples

/i/crashes/delete_comment?api_key=YOUR_API_KEY&app_id=6991c75b024cb89cdc04efd2&args={"app_id":"6991c75b024cb89cdc04efd2","crash_id":"crash_group_1","comment_id":"comment_1"}

Last Updated

2026-03-07