Safely delete ServiceNow records from the CLI — jsn

Delete ServiceNow records with confirmation gates, force flags, and read-only profiles that block destructive commands.

How can I safely delete ServiceNow records from a terminal? Delete ServiceNow records with confirmation gates, force flags, and read-only profiles that block destructive commands. JSN gives you a direct terminal workflow instead of requiring the ServiceNow web interface for every inspection or change.
CommandWhat it does
jsn records delete --table incident --sys-id <id>Deletes are blocked without --force
jsn records delete --table incident --sys-id <id> --forceForce flag skips the confirmation
jsn records delete
jsn records delete --table incident --sys-id <id>

Error: Delete record from incident (57e8723483fe8f10f7bfc670ceaad3aa) — confirmation required. Pass --force to skip, or set skip_confirmations on the profile to disable prompts.

This is a destructive action. Ask your user to confirm, then re-run:
  jsn records delete --force
Or set skip_confirmations on the profile to disable prompts:
  jsn auth login <instance> --skip-confirmations
jsn records delete --table incident --sys-id 57e8723483fe8f10f7bfc670ceaad3aa --force
Deleted record from incident

Get started

Install, point it at your instance, then run this feature.

npm install -g @jacebenson/jsn
jsn setup
jsn records delete --table incident --sys-id <id>
Full setup guide & skill docs →

← All features