[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fwarehouses\u002Fdelete":3,"docs-tabs-entities\u002Fwarehouses\u002Fdelete":6},{"content":4,"lastmod":5},"\n## Delete a warehouse\n\n`DELETE \u002Fv1\u002Fwarehouses\u002F:id`\n\nDeletes a warehouse by identifier.\n\n## Path parameters\n\n| Parameter | Type | Description |\n|----------|-----|---------|\n| `id` | number | Warehouse identifier. List: [`GET \u002Fv1\u002Fwarehouses`](\u002Fdocs\u002Fentities\u002Fwarehouses\u002Flist) |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X DELETE \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fwarehouses\u002F1\" \\\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\u002Fwarehouses\u002F1\" \\\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\u002Fwarehouses\u002F1', {\n  method: 'DELETE',\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n  },\n})\n\nconsole.log(res.status) \u002F\u002F 204\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fwarehouses\u002F1', {\n  method: 'DELETE',\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n  },\n})\n\nconsole.log(res.status) \u002F\u002F 204\n```\n\n## Response\n\nA successful deletion returns HTTP status `204 No Content` with an empty body — check success by the status code.\n\n## Response example\n\n```http\nHTTP\u002F1.1 204 No Content\n```\n\n## Error response example\n\n404 — a warehouse with this `id` does not exist:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"ENTITY_NOT_FOUND\",\n    \"message\": \"store does not exist.\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|---------|\n| 400 | `INVALID_PARAMS` | `id` is not a canonical positive integer: `12.5`, `12abc`, `1e2`, `007` are rejected before the Bitrix24 call |\n| 401 | `TOKEN_MISSING` | The API key has no configured tokens |\n| 403 | `SCOPE_DENIED` | The API key does not have the `catalog` scope |\n| 404 | `ENTITY_NOT_FOUND` | A warehouse with the specified `id` does not exist |\n\nThe full list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n**A nonexistent warehouse is `404`.** Deleting a warehouse by an unknown `id` returns `404` with code `ENTITY_NOT_FOUND`. Deleting an already-deleted warehouse again returns the same error.\n\n## See also\n\n- [List warehouses](\u002Fdocs\u002Fentities\u002Fwarehouses\u002Flist)\n- [Get a warehouse](\u002Fdocs\u002Fentities\u002Fwarehouses\u002Fget)\n- [Create a warehouse](\u002Fdocs\u002Fentities\u002Fwarehouses\u002Fcreate)\n- [API reference](\u002Fdocs\u002Fapi-reference)\n","2026-10-15",{},1794739442854]