[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fcatalog-measures\u002Fdelete":3,"docs-tabs-entities\u002Fcatalog-measures\u002Fdelete":6},{"content":4,"lastmod":5},"## Delete a unit of measure\n\n`DELETE \u002Fv1\u002Fcatalog-measures\u002F:id`\n\nDeletes a commercial catalog unit of measure by its identifier. A deleted record cannot be restored through the API. Create a new one if needed.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|:-----:|---------|\n| `id` (path) | number | yes | Unit of measure identifier, a non-negative integer. List: [`GET \u002Fv1\u002Fcatalog-measures`](\u002Fdocs\u002Fentities\u002Fcatalog-measures\u002Flist) |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X DELETE \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-measures\u002F17\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X DELETE \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-measures\u002F17\" \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\"\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-measures\u002F17', {\n  method: 'DELETE',\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n  },\n})\n\nif (res.status === 204) {\n  console.log('Unit of measure deleted')\n}\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-measures\u002F17', {\n  method: 'DELETE',\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n  },\n})\n\nif (res.status === 204) {\n  console.log('Unit of measure deleted')\n}\n```\n\n## Response\n\nA successful deletion returns HTTP status `204 No Content` with an empty body. Success is indicated by the status code, not the body.\n\n## Response example\n\n```http\nHTTP\u002F1.1 204 No Content\n```\n\n## Error response example\n\n404 — no unit of measure with this `id` exists, for example when the same unit is deleted twice:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"ENTITY_NOT_FOUND\",\n    \"message\": \"measure does not exist.\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|---------|\n| 404 | `ENTITY_NOT_FOUND` | No unit of measure with this `id` exists on the Bitrix24 account, including one already deleted |\n| 400 | `INVALID_PARAMS` | `id` is not a non-negative integer, for example `abc`. The request is rejected before execution, and no data on the Bitrix24 account changes |\n| 403 | `SCOPE_DENIED` | The API key does not have the `catalog` scope |\n| 401 | `TOKEN_MISSING` | The API key has no configured tokens |\n| 401 | `MISSING_API_KEY` | The `X-Api-Key` header is missing |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## See also\n\n- [Create a unit of measure](\u002Fdocs\u002Fentities\u002Fcatalog-measures\u002Fcreate)\n- [Get a unit of measure](\u002Fdocs\u002Fentities\u002Fcatalog-measures\u002Fget)\n- [List units of measure](\u002Fdocs\u002Fentities\u002Fcatalog-measures\u002Flist)\n- [Catalog products](\u002Fdocs\u002Fentities\u002Fcatalog-products)\n- [Batch](\u002Fdocs\u002Fbatch)\n","2026-10-08",{},1795415191014]