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
ParametergroupId (path) Typenumber Requiredyes DescriptionGroup 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

Terminal
curl -X DELETE "https://vibecode.bitrix24.com/v1/notifications/groups/12" \
  -H "X-Api-Key: YOUR_API_KEY"

curl — OAuth application

Terminal
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

javascript
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

javascript
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
Fieldsuccess Typeboolean DescriptionAlways true on success
Fielddata.result Typeboolean DescriptionAlways true. The success indicator is the HTTP code 200, not the value

Response example

HTTP 200:

JSON
{
  "success": true,
  "data": {
    "result": true
  }
}

Error response example

404 — the group does not exist:

JSON
{
  "success": false,
  "error": {
    "code": "ENTITY_NOT_FOUND",
    "message": "Notification group was not found.",
    "b24Code": "GROUP_NOT_FOUND"
  }
}

Errors

HTTP Code Description
HTTP400 CodeINVALID_PARAMS DescriptiongroupId is not a positive integer, including a system group tag such as mention
HTTP400 CodeINVALID_PARAMS DescriptionA 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
HTTP404 CodeENTITY_NOT_FOUND DescriptionThe 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
HTTP422 CodeBITRIX_ERROR DescriptionBitrix24 rejected the deletion; the portal code is in the error.b24Code field
HTTP403 CodeSCOPE_DENIED DescriptionThe key lacks the im scope
HTTP403 CodeWRITE_BLOCKED_READONLY_KEY DescriptionThe key is in read-only mode
HTTP401 CodeTOKEN_MISSING DescriptionThe key has no configured tokens

Full list of common API errors — Errors.

See also