Cannot delete hardware model
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Hi @athavichith
This KB article will hopefully solve your issue. Please go through it. Specifically Play 3 section.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I can't delete the hardware catalog item. It's greyed out. I've already tried deactivating it first.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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');
}
