[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-calls\u002Flog\u002Fdelete":3,"docs-tabs-calls\u002Flog\u002Fdelete":6},{"content":4,"lastmod":5},"## Delete journal entry\n\n`DELETE \u002Fv1\u002Fcalls\u002Flog\u002F:callId`\n\nDeletes a record from the key owner's personal call journal. A record in another user's journal cannot be deleted. A deleted record cannot be restored via the API.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|-------|----------|\n| `callId` (path) | integer | yes | Journal record ID — the `id` field from the [call journal list](\u002Fdocs\u002Fcalls\u002Flog\u002Flist) |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X DELETE \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcalls\u002Flog\u002F77\" \\\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\u002Fcalls\u002Flog\u002F77\" \\\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 response = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcalls\u002Flog\u002F77', {\n  method: 'DELETE',\n  headers: { 'X-Api-Key': 'YOUR_API_KEY' },\n})\nconst { success, data, error } = await response.json()\nconsole.log(success ? data.missedCounter : error.code)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst response = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcalls\u002Flog\u002F77', {\n  method: 'DELETE',\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n  },\n})\nconst { success, data, error } = await response.json()\nconsole.log(success ? data.missedCounter : error.code)\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|----------|\n| `success` | boolean | `true` on success, HTTP `200` |\n| `data.deleted` | boolean | Always `true` — the record is deleted |\n| `data.missedCounter` | integer | Missed-call counter after the deletion |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"deleted\": true,\n    \"missedCounter\": 0\n  }\n}\n```\n\n## Error response example\n\n404 — no record with this `callId` in the journal:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"ENTITY_NOT_FOUND\",\n    \"message\": \"Call log entry not found\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|----------|\n| 400 | `INVALID_CALL_ID` | `callId` is not a positive integer: `callId must be a positive integer` |\n| 404 | `ENTITY_NOT_FOUND` | No record with this `callId` in the key owner's journal |\n| 422 | `CALL_LOG_PREREAD_LIMIT_EXCEEDED` | The record was not found among the 5000 newest journal records; nothing is deleted |\n| 422 | `BITRIX_ERROR` | Bitrix24 did not confirm the deletion: `Bitrix24 did not delete the call log entry` |\n| 403 | `WRITE_BLOCKED_READONLY_KEY` | A read-only key cannot delete records — see [access rights](\u002Fdocs\u002Faccess-rights) |\n| 403 | `SCOPE_DENIED` | The key lacks the `call` scope |\n| 403 | `BITRIX_ACCESS_DENIED` | Bitrix24 denied access |\n| 401 | `TOKEN_MISSING` | The key has no Bitrix24 tokens configured |\n| 429 | `RATE_LIMITED` | The Bitrix24 request limit is exceeded |\n| 502 | `BITRIX_ERROR` | The journal response does not have the expected shape, or the journal cursor stopped advancing |\n| 502 | `BITRIX_UNAVAILABLE` | Bitrix24 is unavailable |\n| 503 | `BITRIX_TIMEOUT` | Bitrix24 did not respond in time |\n\nThe full list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n**The journal is read before deletion.** Vibecode first looks for the record in the key owner's journal, 100 records per request, and deletes it only if found. That is why a missing record or another user's record returns `404`, not success.\n\n**Only the 5000 newest records can be deleted.** The search reads at most 50 pages of 100 records. An older record returns `422 CALL_LOG_PREREAD_LIMIT_EXCEEDED` and cannot be deleted via the API.\n\n## See also\n\n- [Call journal](\u002Fdocs\u002Fcalls\u002Flog)\n- [List call journal](\u002Fdocs\u002Fcalls\u002Flog\u002Flist)\n- [Chat with a user](\u002Fdocs\u002Fcalls\u002Flog\u002Fchat)\n","2026-10-16",{},1795415350472]