How to delete all of the CMDB_CI data

John H1
Tera Guru

We have the need to delete all of the CMDB_CI's in our DEV instance so we can test a new data source for CMDB.

I have this script from the past and wanted to see if it will work now.

var gr = new GlideRecord('cmdb_ci');
gr.query();
gr.deleteMultiple();

1 ACCEPTED SOLUTION

Community Alums
Not applicable
From the Tables and Columns module, complete the following steps. Navigate to System Definition > Tables and Columns. Select the table for which to delete records. Click Delete All Records . In confirmation box, Enter delete and click.

View solution in original post

2 REPLIES 2

Community Alums
Not applicable
From the Tables and Columns module, complete the following steps. Navigate to System Definition > Tables and Columns. Select the table for which to delete records. Click Delete All Records . In confirmation box, Enter delete and click.

Yousaf
Giga Sage

 Hi John,

Please refer 

https://hi.service-now.com/kb_view.do?sys_kb_id=1e62e5cfdb973b401cd8a345ca961981&id=kb_article_view&...


Reference: Need to delete all records in my cmdb_ci table

 

Mark Correct or Helpful if it helps.


***Mark Correct or Helpful if it helps.***