delete the list of CIs from ServiceNow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2017 10:33 PM
delete the list of CIs from ServiceNow.?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2017 10:41 PM
Why you want to delete CIs from ServiceNow?
You can retire them as those CIs might used in different records of ServiceNow.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2017 10:43 PM
You can make it retired instead of deleting it.
If your requirement is to delete then select those record from list view and delete it.
If number is huge, you can run a background script to delete these.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2017 11:16 PM
i have lis of CI to delete,Can u help me out

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2017 11:29 PM
Run this script in 'Background script' after adding conditions to get all those records in your table
deleteRec();
function deleteRec()
{
var rec = new GlideRecord('cmdb_ci');
rec.addQuery('Field_Name','Validation value');
rec.setLimit(10); //Check for 10 record first then increase it
rec.query();
while (rec.next()) {
rec.setWorkflow(false);
rec.deleteRecord();
}
}