Delete Metadata Record
delete_metadata_recordDeletes ServiceNow application metadata records through the platform, capturing the DELETE in a named update set and reading it back. Use only when the user explicitly requests removal of a specific record.
Instructions
Delete application metadata through the platform's own Delete, captured as a DELETE in the named update set and read back. Only when the user asked for the delete; deleting a record that other instances already have removes it there too when the set is committed. Writes through the record's form in the named application and update set, then reads back the record and its capture. Refuses protected files, the platform's own schema tables, and access controls (use the ACL tools). Writing code (a script, a server condition, Jelly, a javascript: value, or switching such a record on) is refused when the session does not permit running scripts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view | No | The form view to load. The default view when omitted. | |
| scope | No | The record's application: its scope name (e.g. "x_acme_app"), or "global". Give this or scope_id. | |
| table | Yes | The metadata table, e.g. sys_script_include, sys_ui_action, sys_properties. | |
| sys_id | Yes | The record's sys_id. | |
| 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 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_table | Yes | Repeat the table exactly. | |
| confirm_sys_id | Yes | Repeat the sys_id exactly. | |
| 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. |