
## 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.

## Parameters

| Parameter | Type | Req. | Description |
|----------|-----|:-----:|---------|
| `entityTypeId` (path) | number | yes | Smart-process type ID |
| `id` (path) | number | yes | Item ID |
| `rowId` (path) | number | yes | Product 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

```bash
curl -X DELETE "https://vibecode.bitrix24.com/v1/items/180/47/products/1465" \
  -H "X-Api-Key: YOUR_API_KEY"
```

### curl — OAuth application

```bash
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

```javascript
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

```javascript
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 successful deletion, HTTP status `204 No Content` is returned with an empty body — success is checked by the status.

## Response example

```
HTTP/1.1 204 No Content
```

## Error response example

404 — item not found:

```json
{
  "success": false,
  "error": {
    "code": "ENTITY_NOT_FOUND",
    "message": "Item not found"
  }
}
```

## Errors

| HTTP | Code | Description |
|------|-----|---------|
| 400 | `INVALID_DYNAMIC_PARAM` | `entityTypeId` is not a positive integer or is reserved (1, 2, 3, 4, 7, 31) |
| 400 | `INVALID_ROW_ID` | `rowId` is not a positive integer |
| 404 | `ENTITY_NOT_FOUND` | Item or product row not found |
| 403 | `SCOPE_DENIED` | API key does not have the `crm` scope |
| 401 | `TOKEN_MISSING` | API key has no configured tokens |

Full list of common API errors — [Errors](/docs/errors).

## See also

- [Product rows](/docs/entities/items/products-get)
- [Add product](/docs/entities/items/products-add)
- [Set products](/docs/entities/items/products-set)
- [Catalog products](/docs/entities/products)
