Delete ACL
delete_aclDeletes an access control (ACL) and its role rows in ServiceNow, requiring explicit confirmation and an update set so the security change is recorded and verified.
Instructions
Delete an access control and its role rows. This is a security change: before calling it, tell the user who gains or loses access and get their go-ahead. It elevates its own session to security_admin (only for ACL tools; other tools stay unelevated) and writes into the named update set, verifying each write by reading it back. Prefer update_acl with active=false, which is reversible, unless the user asked to delete. An active record ACL is deactivated first (the platform deletes only inactive ones) and reactivated if the delete fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | The ACL's application: its scope name (e.g. "x_acme_app"), or "global". Give this or scope_id. | |
| sys_id | Yes | The ACL's sys_id. | |
| confirm | Yes | Repeat the ACL's sys_id exactly, to confirm the delete. | |
| 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. | |
| scope_id | No | The ACL'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 one with create_update_set). Every write is captured there and verified; the user's own current update set is left as it is. | |
| acknowledge_upgrade_skip | No | Only for an installed Store application, and only after the user has reviewed it: upgrades of that application then skip this ACL until the customization is reviewed. |