For AI agents: markdown of this page — /docs-content-en/entities/catalog-sections/delete.md documentation index — /llms.txt
Delete a section
DELETE /v1/catalog-sections/:id
Deletes a catalog section by its ID. A deleted section cannot be restored via the API — create a new one if needed.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
Parameterid (path) |
Typenumber | Requiredyes | DescriptionSection identifier |
Examples
curl — personal key
curl -X DELETE "https://vibecode.bitrix24.com/v1/catalog-sections/215" \
-H "X-Api-Key: YOUR_API_KEY"
curl — OAuth application
curl -X DELETE "https://vibecode.bitrix24.com/v1/catalog-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/catalog-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/catalog-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, the API returns HTTP status 204 No Content with an empty body — check the status code to confirm success.
Response example
HTTP/1.1 204 No Content
Error response example
422 — the section cannot be deleted or does not exist:
{
"success": false,
"error": {
"code": "BITRIX_ERROR",
"message": "Access Denied"
}
}
Errors
| HTTP | Code | Description |
|---|---|---|
| HTTP422 | CodeBITRIX_ERROR |
DescriptionNo section with the given id, or Bitrix24 refused the deletion — the response message is Access Denied |
| HTTP403 | CodeSCOPE_DENIED |
DescriptionThe key lacks the catalog scope |
| HTTP401 | CodeMISSING_API_KEY |
DescriptionX-Api-Key was not provided |
Full list of common API errors — Errors.