[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-voximplant-sip\u002Fdelete":3,"docs-tabs-voximplant-sip\u002Fdelete":6},{"content":4,"lastmod":5},"## Delete connection\n\n`DELETE \u002Fv1\u002Fvoximplant-sip\u002F:configId`\n\nDeletes a SIP connection of an office or cloud PBX by ID. A deleted connection cannot be restored through the API — create a new one if needed.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|:-----:|----------|\n| `configId` (path) | number | yes | Connection ID. List: [`GET \u002Fv1\u002Fvoximplant-sip`](\u002Fdocs\u002Fvoximplant-sip\u002Flist) |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X DELETE \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fvoximplant-sip\u002F17\" \\\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\u002Fvoximplant-sip\u002F17\" \\\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\u002Fvoximplant-sip\u002F17', {\n  method: 'DELETE',\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n  },\n})\n\nconst { success, data } = await res.json()\nif (success && data.deleted) {\n  console.log('Connection deleted, ID:', data.configId)\n}\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fvoximplant-sip\u002F17', {\n  method: 'DELETE',\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n  },\n})\n\nconst { success, data } = await res.json()\nif (success && data.deleted) {\n  console.log('Connection deleted, ID:', data.configId)\n}\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|----------|\n| `success` | boolean | `true` on success |\n| `data.configId` | number | ID of the deleted connection |\n| `data.deleted` | boolean | `true` when the connection is deleted |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"configId\": 17,\n    \"deleted\": true\n  }\n}\n```\n\n## Error response example\n\n404 — the connection is not found or has already been deleted:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"ENTITY_NOT_FOUND\",\n    \"message\": \"SIP connection not found\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|----------|\n| 400 | `INVALID_PARAMS` | `configId` is not a positive integer |\n| 404 | `ENTITY_NOT_FOUND` | No connection with this `configId` among the connections available to the key — including on a repeated deletion |\n| 422 | `BITRIX_ERROR` | Bitrix24 did not confirm the deletion. Error message: `Bitrix24 did not confirm deletion` |\n| 422 | `BITRIX_ERROR` | Bitrix24 rejected the deletion; the reason is in `error.message` |\n| 401 | `MISSING_API_KEY` | The `X-Api-Key` header was not sent |\n| 401 | `INVALID_API_KEY` | The platform does not recognize the key string: a typo, a truncated value, or a deleted key |\n| 401 | `TOKEN_MISSING` | The key has no access to the portal: a personal key has no portal webhook, or an app key was sent without `Authorization: Bearer` with a session token |\n| 403 | `SCOPE_DENIED` | The key does not have the `telephony` scope |\n| 403 | `WRITE_BLOCKED_READONLY_KEY` | The key is read-only — see [access rights](\u002Fdocs\u002Faccess-rights) |\n| 403 | `BITRIX_ACCESS_DENIED` | Bitrix24 denied access — [causes explained](\u002Fdocs\u002Ferrors\u002Fauth#bitrix_access_denied-403) |\n| 429 | `RATE_LIMITED` | Request rate exceeded |\n| 429 | `QUEUE_OVERFLOW` | The account request queue is full, so the request is rejected without waiting. The `Retry-After` header suggests the delay |\n| 429 | `QUEUE_TIMEOUT` | The request did not get through the account queue in time and was not sent to Bitrix24. The `Retry-After` header suggests the delay |\n| 502 | `BITRIX_UNAVAILABLE` | Bitrix24 is unavailable |\n| 503 | `BITRIX_TIMEOUT` | Bitrix24 did not respond in time |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n- **Only a connection of your own application can be deleted.** The method finds a connection only if it was created by the same Bitrix24 application as the key: an app key finds connections of its own application, a personal key finds connections created through Bitrix24 account webhooks. For the `configId` of another application's connection, the method responds with `404 ENTITY_NOT_FOUND`.\n\n## See also\n\n- [List connections](\u002Fdocs\u002Fvoximplant-sip\u002Flist)\n- [Create connection](\u002Fdocs\u002Fvoximplant-sip\u002Fcreate)\n- [SIP connections](\u002Fdocs\u002Fvoximplant-sip)\n- [Default outgoing line](\u002Fdocs\u002Fvoximplant-lines\u002Fdefault)\n","2026-10-13",{},1795415521583]