Remove Choice
remove_choiceRemoves a choice value from a ServiceNow column's choice list in a specified update set; it refuses when records still use the value, so deactivate first unless removal is explicitly requested.
Instructions
Remove a choice from a column's list, captured in the named update set. Refused while records hold the value: prefer set_choice with inactive, and remove anyway only when the user asked.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | The record's application: its scope name (e.g. "x_acme_app"), or "global". Give this or scope_id. | |
| table | Yes | The table. | |
| value | Yes | The stored value of the choice to remove. | |
| column | Yes | The column, prefix included (u_ in Global). | |
| instance | No | The ServiceNow instance auth alias to connect to. This is the alias configured via `snc configure` (e.g., "myinstance", "prod", "test"). The user will typically refer to this by name when saying things like "on my myinstance instance". If not provided, falls back to the SN_AUTH_ALIAS environment variable. | |
| language | No | Choice language (sys_choice.language, e.g. en, pb); en when omitted. | |
| scope_id | No | The record's application by sys_scope sys_id, instead of scope. | |
| update_set | Yes | sys_id of an In progress update set of that application (create_update_set). The capture is verified there; for adding a column and for layout saves it must also be the working set (set_current_update_set). | |
| confirm_in_use | No | The user agreed to remove it although records hold the value. | |
| acknowledge_upgrade_skip | No | Only for an installed Store application, and only after the user has reviewed the change: upgrades of that application then skip this file until the customization is reviewed. |