Cannot delete hardware model

athavichith
Mega Sage

I cannot delete a hardware model. The hardware is duplicate hardware model and is being used in the product catalog item. When I try to delete the model, it cannot delete because it is being reference in the catalog item table. 

 

How can I update the catalog item reference to the correct model, this field is set to read only and there's no ACL being applied on it. 

 

Screenshot 2026-03-19 094456.jpg

 

5 REPLIES 5

Tanushree Maiti
Kilo Patron

Hi @athavichith 

 

This KB article will hopefully solve your issue. Please go through it. Specifically Play 3 section.

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1002763#:~:text=3%20%2D%20Fix....

 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

Vishnu-K
Kilo Sage

Hi @athavichith ,

The models appear to be published to hardware catalog items, so we cannot simply dereference the duplicate models and reassign them to the correct one.

If the duplicate models are both published as hardware catalog items, each model will have its own associated catalog item. Therefore, the correct approach would be:

  • Identify the most appropriate model to retain  preferably the one most frequently used in purchase order requests and with the highest number of associated assets and CIs.

  • Migrate all related assets and configuration items (CIs) from the duplicate models to the selected model using a script.

  • Once the data is consolidated, delete the catalog items associated with the duplicate models.

  • Finally, remove the duplicate models themselves.

This ensures data integrity and avoids breaking existing references.

 

If this answers your question, please mark it as helpful and accept the solution for better community visibility.

 

Thanks,

Vishnu

jmauai
Tera Contributor

I can't delete the hardware catalog item. It's greyed out. I've already tried deactivating it first. 

1Capture_2026-03-20_23.51.28.png

jmauai
Tera Contributor

Was able to delete the hardware catalog item via script, then go back and manually delete the hardware model it was associated with.

var gr = new GlideRecord('pc_hardware_cat_item');
if (gr.get('<sys_id of hardware catalog item>')) {
    var itemName = gr.getDisplayValue('name');
    if (gr.deleteRecord()) {
        gs.print('✅ Successfully deleted: ' + itemName);
    } else {
        gs.print('❌ Delete blocked (references exist — see Delete with preview)');
    }
} else {
    gs.print('Record not found in pc_hardware_cat_item');
}