[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-chats\u002Fmessages\u002Flinks-delete":3,"docs-tabs-chats\u002Fmessages\u002Flinks-delete":6},{"content":4,"lastmod":5},"## Remove a link from the list\n\n`DELETE \u002Fv1\u002Fchats\u002Flinks\u002F:linkId`\n\nRemoves a link from the chat's link list — the Links tab of the side panel. The message that carries the link stays unchanged.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|:-----:|---------|\n| `linkId` (path) | number | yes | Link ID, a positive integer — the `id` field from the [chat's link list](\u002Fdocs\u002Fchats\u002Fmessages\u002Flinks) |\n\nNo body and no query parameters are accepted: any body field or query parameter is rejected with `400 INVALID_PARAMS`.\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X DELETE \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fchats\u002Flinks\u002F12\" \\\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\u002Fchats\u002Flinks\u002F12\" \\\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\u002Fchats\u002Flinks\u002F12', {\n  method: 'DELETE',\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n  },\n})\n\nconst { success } = await res.json()\nconsole.log('Removed:', success)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fchats\u002Flinks\u002F12', {\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()\nconsole.log('Removed:', success)\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|---------|\n| `success` | boolean | Always `true` on success |\n| `data` | boolean | `true` — the link is removed from the list |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": true\n}\n```\n\n## Error response example\n\n422 — there is no link with this ID:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"BITRIX_ERROR\",\n    \"message\": \"Url not found\",\n    \"b24Code\": \"URL_NOT_FOUND\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|---------|\n| 400 | `INVALID_PARAMS` | `linkId` is not a positive integer, or a body field or query parameter was passed. Checked before any call to Bitrix24 |\n| 422 | `BITRIX_ERROR` | `error.b24Code` is `URL_NOT_FOUND` — there is no link with this ID |\n| 422 | `BITRIX_ERROR` | `error.b24Code` is `URL_ACCESS_ERROR` — another employee sent the link, and the current employee is not a Bitrix24 account administrator |\n| 422 | `BITRIX_ERROR` | `error.b24Code` is `ACCESS_ERROR` — the employee has no access to the link's chat |\n| 404 | `ENTITY_NOT_FOUND` | Bitrix24 returned a generic \"not found\" error; the code is in `error.b24Code` |\n| 403 | `SCOPE_DENIED` | The API key does not have the `im` scope |\n| 403 | `WRITE_BLOCKED_READONLY_KEY` | A read-only key cannot remove links — see [access rights](\u002Fdocs\u002Faccess-rights) |\n| 401 | `TOKEN_MISSING` | The API key has no Bitrix24 tokens configured |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## See also\n\n- [List a chat's links](\u002Fdocs\u002Fchats\u002Fmessages\u002Flinks)\n- [Number of a chat's links](\u002Fdocs\u002Fchats\u002Fmessages\u002Flinks-count)\n- [Messages](\u002Fdocs\u002Fchats\u002Fmessages)\n","2026-11-19",{},1795415437103]