[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-userfields\u002Ftasks\u002Fdelete":3,"docs-tabs-userfields\u002Ftasks\u002Fdelete":6},{"content":4,"lastmod":5},"## Delete field\n\n`DELETE \u002Fv1\u002Fuserfields\u002Ftasks\u002F:id`\n\nDeletes a task user field together with its list options and its values in all tasks of the Bitrix24 account. The field and its values cannot be restored via the API.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|:-----:|---------|\n| `:id` (path) | number | yes | Numeric identifier of the field from the response of [`GET \u002Fv1\u002Fuserfields\u002Ftasks`](\u002Fdocs\u002Fuserfields\u002Ftasks\u002Flist) or [`POST \u002Fv1\u002Fuserfields\u002Ftasks`](\u002Fdocs\u002Fuserfields\u002Ftasks\u002Fcreate) |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X DELETE \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fuserfields\u002Ftasks\u002F6007967\" \\\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\u002Fuserfields\u002Ftasks\u002F6007967\" \\\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\u002Fuserfields\u002Ftasks\u002F6007967', {\n  method: 'DELETE',\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n  },\n})\n\nif (res.status === 204) {\n  console.log('Field deleted')\n}\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fuserfields\u002Ftasks\u002F6007967', {\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('Field deleted')\n}\n```\n\n## Response\n\nOn successful deletion, HTTP status `204 No Content` is returned with an empty body. The success indicator is the response code, not the content.\n\n## Response example\n\n```http\nHTTP\u002F1.1 204 No Content\n```\n\n## Error response example\n\n404 — there is no field with this `id`, including after a successful deletion:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"ENTITY_NOT_FOUND\",\n    \"message\": \"Task custom field not found\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|---------|\n| 400 | `INVALID_ID` | `:id` is not a positive integer — the request is rejected before it reaches Bitrix24 |\n| 404 | `ENTITY_NOT_FOUND` | There is no field with this `id` — including a repeated `DELETE` after a successful deletion — or it belongs to another entity |\n| 403 | `SYSTEM_FIELD_PROTECTED` | System field `UF_CRM_TASK`, `UF_TASK_WEBDAV_FILES`, or `UF_MAIL_MESSAGE` |\n| 403 | `BITRIX_ACCESS_DENIED` | The key owner is not a Bitrix24 account administrator |\n| 403 | `WRITE_BLOCKED_READONLY_KEY` | The key is in read-only mode |\n| 403 | `TASK_CUSTOM_FIELDS_UNAVAILABLE` | The portal plan does not include task user fields |\n| 403 | `SCOPE_DENIED` | The API key does not have the `task` scope |\n| 502 | `TASK_USERFIELD_OUTCOME_UNKNOWN` | The connection to Bitrix24 dropped, or Bitrix24 returned a server error during the deletion — whether the field was deleted is unknown. The request was not retried automatically: read the field by `id` before deleting it again |\n| 401 | `TOKEN_MISSING` | The key has no Bitrix24 tokens. For an application key, the `Authorization: Bearer USER_SESSION_TOKEN` header was not passed |\n| 401 | `MISSING_API_KEY` | The `X-Api-Key` header is missing |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n**Recreating the field does not bring its values back.** After deletion, the field disappears from tasks: [`GET \u002Fv1\u002Ftasks\u002F:id`](\u002Fdocs\u002Fentities\u002Ftasks\u002Fget) no longer returns it. A field created again with the same `fieldName` is empty in tasks — the previous values are not restored.\n\n## See also\n\n- [List fields](\u002Fdocs\u002Fuserfields\u002Ftasks\u002Flist)\n- [Create field](\u002Fdocs\u002Fuserfields\u002Ftasks\u002Fcreate)\n- [Task fields](\u002Fdocs\u002Fuserfields\u002Ftasks)\n- [Tasks](\u002Fdocs\u002Fentities\u002Ftasks)\n- [User fields](\u002Fdocs\u002Fuserfields)\n","2026-10-15",{},1795377197115]