- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2019 06:15 AM
Hello All,
We are in process of Retiring 10,000+ records in Net gear (cmdb_ci_ip_switch) and also delete all relationships if the CI name is matching as parent or child.
Any inputs with best practices if anyone worked on similar case to the above process.
Thanks,
Reddy
Solved! Go to Solution.
- Labels:
-
Discovery

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2019 06:48 AM
Hi there,
Can you filter the records you are after? Through a list, for both cmdb_ci_ip_switch as you relationship records? If so you could easily copy the query, and use it in GlideRecord queries through fix script for example. If possible, try to use updateMultiple() and deleteMultiple().
Though like Andrew already mentioned, test this first, on your dev/test environment, with small subsets of your data (for example using setLimit).
Maybe this article is helpful already:
Utilizing the breadcrumb on lists to generate your query
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
---
LinkedIn
Community article list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2019 06:47 AM
Hi,
Please close this thread if answered.
Thanks,
Ashutosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2019 07:15 AM
Retiring and Deleting are 2 different things. We are not allowed to delete many classes of CI because of SOX compliane and related records retention policies, as such we set Operational State=Retired.
Note that out of the box behavior is to not generate tasks against CIs which are in the Retired State.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2019 02:56 AM
Thanks for reply.But we trying to delete related records of Ci's after its status is set to retired and not CI's.Anyway good point to note for retention policies.