Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Deletion strategy for CMDB CI

Sudharshan Mohi
Tera Contributor

We have a requirement to delete CMDB CI records (windows) if they are not discovered after 90 days. This is not applicable for all but differes for few - Unix and ESX CI which comes with 60 days deletion period.

Where to set Deletion CI configuration in Discovery.

1 ACCEPTED SOLUTION

User511834
Tera Expert

To accomplish this you will need to do three things:

1. Set the Staleness Rule for the Windows Server CI Class to 90 days as below:

find_real_file.png

2. Create a workflow to delete the Windows Server CI if it's stale

find_real_file.png3. Create a CMDB Remediation Rule

find_real_file.png

Also, make sure that the Create Task option below is turned on for staleness rule, otherwise the remediation task will not be created:

find_real_file.png

Instead of deleting the CI you could also change the CI to Non-Operational and its status to retired, that would be preferable rather than deleting things via workflow, you can then review these retired CIs and delete them as needed:

find_real_file.png

View solution in original post

5 REPLIES 5

@Michael de Boer

Thanks for your response

I don't want to delete CI's, i want to make them retire.

- I have created the Create a CMDB Remediation Rule but i am not sure what will be workflow for this?