Disable CI in CMDB
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-07-2026 07:27 AM
I have a corrupted CI (Central Interaction).
When I access its record, I get a "(Record not found)" message.
I've tried disabling it through the table, deleting it from the table, and even creating a script and running a deletion script in Fix Scripts, but the record remains active in the cmdb_ci table.
Can anyone help me with this?
Labels:
- Labels:
-
CMDB
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-07-2026 08:21 AM - edited ‎05-07-2026 08:22 AM
Hi @samoliveira
Run this in System Definition > Scripts - Background (or Fix Scripts):
var ciSysId = 'YOUR_CORRUPTED_CI_SYS_ID';
var gr = new GlideRecord('cmdb_ci');
if (gr.get(ciSysId))
{ gr.deleteRecord(); gs.print('CI Deleted: ' + ciSysId); } else { gs.print('CI not found in cmdb_ci: ' + ciSysId); }
Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-07-2026 10:54 AM
HI,
I ran the script you sent me, and unfortunately, CI is still listed in cmdb_ci.
Do you have any other ideas on how to disable it?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-07-2026 12:01 PM
How are you "seeing" it in cmdb_ci, via a list view or otherwise?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-07-2026 01:24 PM
I'm viewing CI as a list.