[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-notifications\u002Fdelete-all":3,"docs-tabs-notifications\u002Fdelete-all":6},{"content":4,"lastmod":5},"## Delete all notifications\n\n`DELETE \u002Fv1\u002Fnotifications`\n\nIrreversible: deletes all notifications of the key owner, and they cannot be restored. Call it only when the feed has to be cleared completely.\n\n## Parameters\n\nThere are no parameters and no body — only the URL. Any query string parameter and any body field are rejected with `400 INVALID_PARAMS` before the Bitrix24 call, and nothing is deleted: an identifier passed outside the path does not result in deleting the whole feed. An empty `{}` object in the body is allowed.\n\n[`DELETE \u002Fv1\u002Fnotifications\u002F:id`](.\u002Fdelete.md) deletes a single notification, and [`DELETE \u002Fv1\u002Fnotifications\u002Fby-tag\u002F:tag`](.\u002Fdelete-by-tag.md) deletes notifications with a given tag.\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X DELETE \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fnotifications\" \\\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\u002Fnotifications\" \\\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\u002Fnotifications', {\n  method: 'DELETE',\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n  },\n})\n\nconst { success } = await res.json()\nif (success) {\n  console.log('All notifications deleted')\n}\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fnotifications', {\n  method: 'DELETE',\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n  },\n})\n\nconst { success } = await res.json()\nif (success) {\n  console.log('All notifications deleted')\n}\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|----------|\n| `success` | boolean | `true` on successful deletion |\n| `data.result` | boolean | Always `true`. The success indicator is the HTTP code `200`, not the value |\n\n## Response example\n\nHTTP 200:\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"result\": true\n  }\n}\n```\n\n## Error response example\n\n400 — a body field was passed, nothing was deleted:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"INVALID_PARAMS\",\n    \"message\": \"Body field `id` is not accepted by DELETE \u002Fv1\u002Fnotifications. It takes no body fields.\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|----------|\n| 400 | `INVALID_PARAMS` | A query string parameter or a body field was passed, or the body is not a JSON object. The parameter is named in the message. Checked before the Bitrix24 call — nothing is deleted |\n| 403 | `SCOPE_DENIED` | The key lacks the `im` scope |\n| 403 | `WRITE_BLOCKED_READONLY_KEY` | The key is in read-only mode |\n| 401 | `TOKEN_MISSING` | The key has no configured tokens |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n- The call deletes the token owner's notifications: with a personal key, those of the key owner; with an OAuth application key and the `Authorization: Bearer` header, those of the user who owns the session.\n- The whole feed is deleted, not only the notifications of your application: system notifications and notifications of other applications on the Bitrix24 account are deleted too. To remove only your own, send them with a `tag` and delete them [by tag](.\u002Fdelete-by-tag.md).\n- Verify success with the `200` status code and `success: true`. Deleting by id and by tag both return `204` with no body; this operation does not.\n- The response does not say how many notifications were deleted. The result is visible in the [notification feed](.\u002Flist.md): after the call the `notifications` array is empty, and `totalCount` and `totalUnreadCount` equal `0`.\n\n## See also\n\n- [Delete by id](.\u002Fdelete.md)\n- [Delete by tag](.\u002Fdelete-by-tag.md)\n- [Notification feed](.\u002Flist.md)\n- [Errors](\u002Fdocs\u002Ferrors)\n","2026-10-09",{},1794739591148]