[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-feed-comments\u002Fdelete":3,"docs-tabs-feed-comments\u002Fdelete":6},{"content":4,"lastmod":5},"## Delete a feed comment\n\n`DELETE \u002Fv1\u002Ffeed-comments\u002F:id`\n\nDeletes a comment from the Feed by its ID in the Feed. A deleted comment cannot be restored via the API.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|:-----:|----------|\n| `id` (path) | number | yes | Comment ID in the feed — the `data.comments[].id` field. List: [GET \u002Fv1\u002Fposts\u002Fcomments](\u002Fdocs\u002Fposts\u002Fcomments\u002Fread). The `commentId` field from the same response cannot be used here |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X DELETE https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Ffeed-comments\u002F6195 \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X DELETE https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Ffeed-comments\u002F6195 \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\"\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Ffeed-comments\u002F6195', {\n  method: 'DELETE',\n  headers: { 'X-Api-Key': 'YOUR_API_KEY' },\n})\nconst result = await res.json()\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Ffeed-comments\u002F6195', {\n  method: 'DELETE',\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n  },\n})\nconst result = await res.json()\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|----------|\n| `success` | boolean | `true` on successful deletion |\n| `data.deleted` | boolean | Always `true`: the comment is deleted from the feed |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"deleted\": true\n  }\n}\n```\n\n## Error response example\n\n404 — the feed has no comment with this ID, or it has already been deleted:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"ENTITY_NOT_FOUND\",\n    \"message\": \"Feed comment not found\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|----------|\n| 400 | `INVALID_PARAMS` | `id` in the path is not a positive integer |\n| 404 | `ENTITY_NOT_FOUND` | The feed has no comment with this `id`, including after a repeated deletion |\n| 403 | `BITRIX_ACCESS_DENIED` | The key's user has no permission to delete this comment |\n| 422 | `BITRIX_ERROR` | Bitrix24 did not confirm the deletion or rejected the request |\n| 401 | `MISSING_API_KEY` | The `X-Api-Key` header is missing |\n| 401 | `INVALID_API_KEY` | The key is not found or has been revoked |\n| 401 | `TOKEN_MISSING` | The key has no portal tokens. An OAuth application key requires the `Authorization: Bearer` header |\n| 403 | `SCOPE_DENIED` | The key does not have the `log` scope |\n| 403 | `WRITE_BLOCKED_READONLY_KEY` | The key works in read-only mode |\n| 429 | `RATE_LIMITED` | The request rate to Bitrix24 was exceeded. Retry after the time in the `Retry-After` header |\n| 502 | `BITRIX_UNAVAILABLE` | Bitrix24 is unavailable |\n| 503 | `BITRIX_TIMEOUT` | Bitrix24 accepted the request but did not respond in time. Before retrying, check whether the comment is still in [GET \u002Fv1\u002Fposts\u002Fcomments](\u002Fdocs\u002Fposts\u002Fcomments\u002Fread) |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n- **The post comment remains.** Deletion removes the comment from the feed, but the post comment with the same text is not deleted, and the post's `numComments` counter in the [post list](\u002Fdocs\u002Ffeed\u002Fposts\u002Flist) does not decrease. To delete the post comment, call [DELETE \u002Fv1\u002Fposts\u002F:id\u002Fcomments\u002F:commentId](\u002Fdocs\u002Ffeed\u002Fcomments\u002Fdelete) with the `postId` and `commentId` fields from the [GET \u002Fv1\u002Fposts\u002Fcomments](\u002Fdocs\u002Fposts\u002Fcomments\u002Fread) response.\n\n## See also\n\n- [Feed comments](\u002Fdocs\u002Ffeed-comments)\n- [Read user comments](\u002Fdocs\u002Fposts\u002Fcomments\u002Fread)\n- [Delete a comment](\u002Fdocs\u002Ffeed\u002Fcomments\u002Fdelete)\n- [Feed](\u002Fdocs\u002Ffeed)\n- [Errors](\u002Fdocs\u002Ferrors)\n","2026-10-20",{},1795415447610]