For AI agents: markdown of this page — /docs-content-en/lists/sections/delete.md documentation index — /llms.txt

Delete a section

DELETE /v1/lists/:iblockId/sections/:sectionId

Deletes a list section. A deleted section cannot be restored through the API — create a new one if needed.

Parameters

Parameter Type Required Description
ParameteriblockId (path) Typestring Requiredyes DescriptionNumeric IBLOCK_ID or the list's symbolic code
ParametersectionId (path) Typenumber Requiredyes DescriptionNumeric section ID. List of sections: GET /v1/lists/:iblockId/sections
ParameteriblockTypeId (query) Typestring Requiredno DescriptionInfoblock type. Values:
lists — regular lists, default
lists_socnet — workgroup lists
bitrix_processes — service workflows
structure — company-structure type (absence-calendar iblock absence)

Examples

curl — personal key

Terminal
curl -X DELETE https://vibecode.bitrix24.com/v1/lists/23/sections/215 \
  -H "X-Api-Key: YOUR_API_KEY"

curl — OAuth application

Terminal
curl -X DELETE https://vibecode.bitrix24.com/v1/lists/23/sections/215 \
  -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/lists/23/sections/215', {
  method: 'DELETE',
  headers: { 'X-Api-Key': 'YOUR_API_KEY' },
})
if (res.status === 204) {
  console.log('Section deleted')
}

JavaScript — OAuth application

javascript
const res = await fetch('https://vibecode.bitrix24.com/v1/lists/23/sections/215', {
  method: 'DELETE',
  headers: {
    'X-Api-Key': 'YOUR_APP_KEY',
    'Authorization': 'Bearer USER_SESSION_TOKEN',
  },
})
if (res.status === 204) {
  console.log('Section deleted')
}

Response

On successful deletion an HTTP status of 204 No Content with an empty body is returned. Success is indicated by the response code, not the body.

Response example

HTTP/1.1 204 No Content

Error response example

400 — invalid section identifier:

JSON
{
  "success": false,
  "error": {
    "code": "INVALID_PARAMS",
    "message": "sectionId must be a positive integer"
  }
}

Errors

HTTP Code Description
HTTP400 CodeINVALID_PARAMS DescriptionsectionId is not a positive integer
HTTP400 CodeINVALID_IBLOCK_TYPE DescriptioniblockTypeId is not one of lists, lists_socnet, bitrix_processes, structure
HTTP403 CodeBITRIX_ACCESS_DENIED DescriptionThe section or list does not exist, or the key has no access to it
HTTP409 CodeLISTS_MODULE_NOT_ENABLED DescriptionThe Lists module is not enabled on the Bitrix24 portal
HTTP403 CodeWRITE_BLOCKED_READONLY_KEY DescriptionThe key operates in read-only mode
HTTP403 CodeSCOPE_DENIED DescriptionThe key is missing the lists scope
HTTP401 CodeTOKEN_MISSING DescriptionThe key has no access tokens configured

Full list of common API errors — Errors.

See also