[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fbooking-resources\u002Fslots-delete":3,"docs-tabs-entities\u002Fbooking-resources\u002Fslots-delete":6},{"content":4,"lastmod":5},"## Remove resource work hours\n\n`DELETE \u002Fv1\u002Fbooking-resources\u002F:id\u002Fslots`\n\nRemoves all work hours of a booking resource in a single call. The resource remains; to set work hours again, use `PUT \u002Fv1\u002Fbooking-resources\u002F:id\u002Fslots`.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|:-----:|----------|\n| `id` (path) | number | yes | Booking resource ID. List: [`GET \u002Fv1\u002Fbooking-resources`](\u002Fdocs\u002Fentities\u002Fbooking-resources\u002Flist) |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X DELETE \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fbooking-resources\u002F65\u002Fslots\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\" \\\n  -w \"%{http_code}\\n\"\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X DELETE \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fbooking-resources\u002F65\u002Fslots\" \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\" \\\n  -w \"%{http_code}\\n\"\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fbooking-resources\u002F65\u002Fslots', {\n  method: 'DELETE',\n  headers: { 'X-Api-Key': 'YOUR_API_KEY' },\n})\n\nif (res.status === 204) {\n  console.log('Work hours removed')\n} else {\n  const { error } = await res.json()\n  console.log(error.code, error.message)\n}\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fbooking-resources\u002F65\u002Fslots', {\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('Work hours removed')\n} else {\n  const { error } = await res.json()\n  console.log(error.code, error.message)\n}\n```\n\n## Response\n\nOn successful removal, the HTTP status is `204 No Content` with an empty body. The status code signals success, not the body.\n\n## Response example\n\n```\nHTTP\u002F1.1 204 No Content\n```\n\n## Error response example\n\n404 — no resource with this `id` exists:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"ENTITY_NOT_FOUND\",\n    \"message\": \"Booking resource not found\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|----------|\n| 404 | `ENTITY_NOT_FOUND` | No resource with this `id` exists. Message `Booking resource not found` |\n| 400 | `INVALID_PARAMS` | `id` is not a positive integer. Message `id must be a positive safe integer` |\n| 401 | `MISSING_API_KEY` | The `X-Api-Key` header is not passed |\n| 401 | `TOKEN_MISSING` | The key has no Bitrix24 tokens |\n| 403 | `WRITE_BLOCKED_READONLY_KEY` | The key is in read-only mode. The request is rejected before it reaches Bitrix24 |\n| 403 | `SCOPE_DENIED` | The key does not have the `booking` scope |\n| 429 | `RATE_LIMITED` | Request rate exceeded. The effective cap is in the `x-ratelimit-limit` header |\n| 502 | `BITRIX_RESPONSE_INVALID` | Bitrix24 did not confirm the removal. Message `Bitrix24 returned an invalid booking response` |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n**A repeated removal also returns `204`.** For a resource without work hours, the call returns no error, so it can be repeated without checking the work hours first.\n\n## See also\n\n- [Resource work hours](\u002Fdocs\u002Fentities\u002Fbooking-resources\u002Fslots)\n- [Get resource work hours](\u002Fdocs\u002Fentities\u002Fbooking-resources\u002Fslots-list)\n- [Set resource work hours](\u002Fdocs\u002Fentities\u002Fbooking-resources\u002Fslots-set)\n- [Update a booking resource](\u002Fdocs\u002Fentities\u002Fbooking-resources\u002Fupdate)\n- [List booking resources](\u002Fdocs\u002Fentities\u002Fbooking-resources\u002Flist)\n","2026-10-15",{},1795343768740]