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

Delete item

DELETE /v1/items/:entityTypeId/:id

Deletes a smart process item by ID. A deleted item cannot be restored through the API — create a new one if needed.

Parameters

Parameter Type Required Description
entityTypeId (path) number yes Smart process type ID. Retrieve: GET /v1/smart-processes. Reserved values (1, 2, 3, 4, 7, 31) are served by specialized APIs: /v1/leads, /v1/deals, /v1/contacts, /v1/companies, /v1/quotes, /v1/invoices
id (path) number yes Item ID

Examples

In the examples entityTypeId = 177, id = 783 — replace with your values.

curl — personal key

Terminal
curl -X DELETE "https://vibecode.bitrix24.com/v1/items/177/783" \
  -H "X-Api-Key: YOUR_API_KEY"

curl — OAuth application

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

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

JavaScript — OAuth application

javascript
const res = await fetch('https://vibecode.bitrix24.com/v1/items/177/783', {
  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 determined by the status.

Response example

HTTP/1.1 204 No Content

Error response example

400 — reserved entityTypeId (for standard CRM entities):

JSON
{
  "success": false,
  "error": {
    "code": "INVALID_DYNAMIC_PARAM",
    "message": "entityTypeId 2 has a dedicated API: use /v1/deals instead"
  }
}

Errors

HTTP Code Description
400 INVALID_DYNAMIC_PARAM entityTypeId is not a positive integer or is reserved (1, 2, 3, 4, 7, 31)
404 ENTITY_NOT_FOUND No item found with the specified ID
403 SCOPE_DENIED The API key does not have the crm scope
401 TOKEN_MISSING The API key has no configured tokens

Full list of common API errors — Errors.

See also