For AI agents: markdown of this page — /docs-content-en/notifications/groups/delete.md documentation index — /llms.txt
Delete a notification group
DELETE /v1/notifications/groups/:groupId
Deletes a group the user created, together with all its conditions; the notifications themselves stay in the feed. A deleted group cannot be restored via the API — create a new one if needed.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
groupId (path) |
number | yes | Group identifier — the tag value of a group with isEditable: true from the group list, passed as a number. The system groups confirm, mention and admin have no numeric identifier |
Examples
curl — personal key
curl -X DELETE "https://vibecode.bitrix24.com/v1/notifications/groups/12" \
-H "X-Api-Key: YOUR_API_KEY"
curl — OAuth application
curl -X DELETE "https://vibecode.bitrix24.com/v1/notifications/groups/12" \
-H "X-Api-Key: YOUR_APP_KEY" \
-H "Authorization: Bearer USER_SESSION_TOKEN"
JavaScript — personal key
const res = await fetch('https://vibecode.bitrix24.com/v1/notifications/groups/12', {
method: 'DELETE',
headers: { 'X-Api-Key': 'YOUR_API_KEY' },
})
const { success } = await res.json()
console.log('Group deleted:', success)
JavaScript — OAuth application
const res = await fetch('https://vibecode.bitrix24.com/v1/notifications/groups/12', {
method: 'DELETE',
headers: {
'X-Api-Key': 'YOUR_APP_KEY',
'Authorization': 'Bearer USER_SESSION_TOKEN',
},
})
const { success } = await res.json()
console.log('Group deleted:', success)
Response fields
| Field | Type | Description |
|---|---|---|
success |
boolean | Always true on success |
data.result |
boolean | Always true. The success indicator is the HTTP code 200, not the value |
Response example
HTTP 200:
{
"success": true,
"data": {
"result": true
}
}
Error response example
404 — the group does not exist:
{
"success": false,
"error": {
"code": "ENTITY_NOT_FOUND",
"message": "Notification group was not found.",
"b24Code": "GROUP_NOT_FOUND"
}
}
Errors
| HTTP | Code | Description |
|---|---|---|
| 400 | INVALID_PARAMS |
groupId is not a positive integer, including a system group tag such as mention |
| 400 | INVALID_PARAMS |
A body field or a query parameter was passed — the operation does not accept them — or the body is not a JSON object. The field name is in message |
| 404 | ENTITY_NOT_FOUND |
The group does not exist — it was already deleted (including automatically, when its last condition was removed) or belongs to another user. The portal code GROUP_NOT_FOUND is in the error.b24Code field. On a portal whose interface language is neither Russian nor English, the same refusal arrives as 422 BITRIX_ERROR — rely on error.b24Code |
| 422 | BITRIX_ERROR |
Bitrix24 rejected the deletion; the portal code is in the error.b24Code field |
| 403 | SCOPE_DENIED |
The key lacks the im scope |
| 403 | WRITE_BLOCKED_READONLY_KEY |
The key is in read-only mode |
| 401 | TOKEN_MISSING |
The key has no configured tokens |
Full list of common API errors — Errors.