Skip to main content

Delete comment

Delete task comment by ID

Function DeleteTaskComment(Val URL, Val TaskID, Val CommentID, Val Token = "") Export

ParameterCLI optionTypeRequiredDescription
URL--urlStringURL of webhook or a Bitrix24 domain, when token used
TaskID--taskNumber, StringTask ID
CommentID--commentNumber, StringID of comment to remove
Token--tokenStringAccess token, when app auth method used

Returns: Map Of KeyAndValue - serialized JSON of answer from Bitrix24 API


tip

Method at API documentation: task.commentitem.delete


1C:Enterprise/OneScript code example
    URL       = "https://b24-ar17wx.bitrix24.by/rest/1/h0m...";
TaskID = "7888";
CommentID = "18382";

Result = OPI_Bitrix24.DeleteTaskComment(URL, TaskID, CommentID);

URL = "b24-ar17wx.bitrix24.by";
Token = "75d8c668006e9f06006b12e400000001000...";
CommentID = "18384";

Result = OPI_Bitrix24.DeleteTaskComment(URL, TaskID, CommentID, Token);
    oint bitrix24 DeleteTaskComment \
--url ""b24-ar17wx.bitrix24.by"" \
--task ""7994"" \
--comment "18616" \
--token "***"
Result
{
"result": true,
"time": {
"start": 1757976489.48526,
"finish": 1757976489.58461,
"duration": 0.0993490219116211,
"processing": 0.0774369239807129,
"date_start": "2025-09-15T22:48:09+00:00",
"date_finish": "2025-09-15T22:48:09+00:00",
"operating_reset_at": 1757977089,
"operating": 0
}
}