For AI agents: markdown of this page — /docs-content-en/entities/items/products-delete.md documentation index — /llms.txt
Delete a product from a smart process item
DELETE /v1/items/:entityTypeId/:id/products/:rowId
Deletes a single product row from a smart process item by row ID.
Use the entityTypeId field from GET /v1/smart-processes in the /v1/items/:entityTypeId path. The type record's internal id is a different identifier. For example, if a type is returned as { "id": 3, "entityTypeId": 174 }, the path starts with /v1/items/174. Use the returned value rather than assuming all type IDs start at 1030.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
ParameterentityTypeId (path) |
Typenumber | Requiredyes | DescriptionSmart process type ID |
Parameterid (path) |
Typenumber | Requiredyes | DescriptionItem ID |
ParameterrowId (path) |
Typenumber | Requiredyes | DescriptionProduct row ID (from the add or list response) |
rowId is the product row ID, not the productId from the product catalog.
Examples
curl — personal key
curl -X DELETE "https://vibecode.bitrix24.com/v1/items/180/47/products/1465" \
-H "X-Api-Key: YOUR_API_KEY"
curl — OAuth application
curl -X DELETE "https://vibecode.bitrix24.com/v1/items/180/47/products/1465" \
-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/items/180/47/products/1465', {
method: 'DELETE',
headers: {
'X-Api-Key': 'YOUR_API_KEY',
},
})
if (res.status === 204) {
console.log('Product deleted')
}
JavaScript — OAuth application
const res = await fetch('https://vibecode.bitrix24.com/v1/items/180/47/products/1465', {
method: 'DELETE',
headers: {
'X-Api-Key': 'YOUR_APP_KEY',
'Authorization': 'Bearer USER_SESSION_TOKEN',
},
})
if (res.status === 204) {
console.log('Product deleted')
}
Response
On success, the API returns 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
404 — item not found:
{
"success": false,
"error": {
"code": "ENTITY_NOT_FOUND",
"message": "Item not found"
}
}
Errors
| HTTP | Code | Description |
|---|---|---|
| HTTP400 | CodeINVALID_DYNAMIC_PARAM |
DescriptionentityTypeId is not a positive integer or is reserved (1, 2, 3, 4, 7, 31) |
| HTTP400 | CodeINVALID_ROW_ID |
DescriptionrowId is not a positive integer |
| HTTP404 | CodeENTITY_NOT_FOUND |
DescriptionItem or product row not found |
| HTTP403 | CodeSCOPE_DENIED |
DescriptionThe API key does not have the crm scope |
| HTTP401 | CodeTOKEN_MISSING |
DescriptionThe API key has no configured tokens |
Full list of common API errors — Errors.