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 |
|---|---|---|---|
iblockId (path) |
string | yes | Numeric IBLOCK_ID or the list's symbolic code |
sectionId (path) |
number | yes | Numeric section ID. List of sections: GET /v1/lists/:iblockId/sections |
iblockTypeId (query) |
string | no | Infoblock type. Values:lists — regular lists, defaultlists_socnet — workgroup listsbitrix_processes — service workflows |
Examples
curl — personal key
curl -X DELETE https://vibecode.bitrix24.com/v1/lists/23/sections/215 \
-H "X-Api-Key: YOUR_API_KEY"
curl — OAuth application
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
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
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:
{
"success": false,
"error": {
"code": "INVALID_PARAMS",
"message": "sectionId must be a positive integer"
}
}
Errors
| HTTP | Code | Description |
|---|---|---|
| 400 | INVALID_PARAMS |
sectionId is not a positive integer |
| 400 | INVALID_IBLOCK_TYPE |
iblockTypeId is not one of lists, lists_socnet, bitrix_processes |
| 403 | BITRIX_ACCESS_DENIED |
The section or list does not exist, or the key has no access to it |
| 409 | LISTS_MODULE_NOT_ENABLED |
The Lists module is not enabled on the Bitrix24 portal |
| 403 | WRITE_BLOCKED_READONLY_KEY |
The key operates in read-only mode |
| 403 | SCOPE_DENIED |
The key is missing the lists scope |
| 401 | TOKEN_MISSING |
The key has no access tokens configured |
Full list of common API errors — Errors.