How to delete alm_asset records while preserving cmdb_ci recordsSummaryThis KB explains how to delete records in the alm_asset table while keeping associated records in the cmdb_ci table.ReleaseAnyInstructionsYou can refer to the sample script below to delete the asset with sys_id 00abe08d3790200044e0bfc8bcbe5d37 for example:var gr = new GlideRecord('alm_asset');gr.get('00abe08d3790200044e0bfc8bcbe5d37');var a = new AssetandCI();a.deleteAssetOnly(gr);Notice that although CI will be preserved the following related tables will also be deleted: fx_currency_instancefx_pricefm_expense_linealm_consumable Use GlideRecord and the sample code above to delete multiple records.Related Linkshttps://docs.servicenow.com/csh?topicname=c_UsingGlideRecordToQueryTables.html&version=latest