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

Delete dictionary record

DELETE /v1/statuses/:id

Deletes a CRM dictionary record by ID. System records (system: true) cannot be deleted.

Parameters

Parameter Type Required Description
id (path) number yes Dictionary record ID

Examples

curl — personal key

Terminal
curl -X DELETE "https://vibecode.bitrix24.com/v1/statuses/42" \
  -H "X-Api-Key: YOUR_API_KEY"

curl — OAuth application

Terminal
curl -X DELETE "https://vibecode.bitrix24.com/v1/statuses/42" \
  -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/statuses/42', {
  method: 'DELETE',
  headers: { 'X-Api-Key': 'YOUR_API_KEY' },
})

if (res.status === 204) {
  console.log('Record deleted')
}

JavaScript — OAuth application

javascript
const res = await fetch('https://vibecode.bitrix24.com/v1/statuses/42', {
  method: 'DELETE',
  headers: {
    'X-Api-Key': 'YOUR_APP_KEY',
    'Authorization': 'Bearer USER_SESSION_TOKEN',
  },
})

if (res.status === 204) {
  console.log('Deleted')
}

Response

On successful deletion the HTTP status 204 No Content is returned with an empty body — success is verified by the status.

Response example

HTTP/1.1 204 No Content

Error response example

422 — record not found or system:

JSON
{
  "success": false,
  "error": {
    "code": "BITRIX_ERROR",
    "message": "Status is not found."
  }
}

Errors

HTTP Code Description
422 BITRIX_ERROR Record not found, is a system record (system: true) or ID is invalid
403 SCOPE_DENIED API key does not have the crm scope
401 TOKEN_MISSING API key was not provided

Full list of errors — Errors.

See also