To create a CI deletion strategy for pattern discovery, find the relevant CI type in Related CI Types, then change its Deletion Strategy value. Choose whether a missing CI stays unchanged, loses relationships, receives a status, or is deleted. Validate the outcome through repeat discovery before using a destructive setting broadly.
Define which missing CIs the strategy should affect
A pattern discovers a main CI and can discover related CIs around it. An IIS web server, for example, can have a hosting Windows machine, configuration files, virtual directories, and a website associated with it. A decision about a missing website is different from a decision about the machine hosting the server.
The Related CI Types [sa_ci_to_pattern] table holds the records that determine deletion behavior for CI types discovered by a pattern. Start with the pattern and the CI type together. A class name alone does not explain which discovery context you intend to change. Record the intended combination before editing a strategy.
These strategies apply to pattern discovery, rather than probe-based or sensor-based discovery. A main CI can have a deletion strategy when the pattern type is Application or Cloud Resource. The main CI in an Infrastructure pattern cannot have one. Related entries used in identification rules do not support deletion strategies.
For planning, separate three questions: does the CI still belong in the CMDB, does its relationship to the main CI still describe reality, and should its status change? Answering those questions first gives the setting a clear purpose. Review available on-premise discovery patterns when identifying the pattern behind the records.
Choose the outcome before editing the value
Keep is the default. It leaves the missing CI record unchanged. Consider it while investigating unreliable discovery results or while deciding who owns a lifecycle decision. Keeping a record does not resolve the reason it disappeared from discovery, so assign a follow-up review rather than treating retention as completed cleanup.
Delete removes the CI record and its relationships from the CMDB. Choose it when the agreed outcome is record removal. Before selecting it, review the relationships that would disappear and identify who depends on them. A strategy chosen to tidy one pattern’s results can have a larger effect than removing a visible line from a dependency view.
Delete relations removes the relationships between the related CI and the main CI while retaining the related CI record. This fits a different decision: the object may still matter, but that connection should no longer appear. Check the relationship and the CI independently when validating this choice.
Mark as absent changes Status [install_status] to Absent. Ordinarily, that retains the CI and its relationships. There are two critical exceptions: CIs in cmdb_ci_network_adapter and cmdb_ci_ip_address are deleted when marked as absent. Identify the underlying table before treating this choice as a retention option.
Mark as retired changes Status [install_status] to Retired without instructing deletion of the CI or its relationship. Use it when retirement matches the intended operational meaning. A missing discovery result and a retirement decision need not mean the same thing to the people maintaining the CMDB.
Write a short expected result for the selected value. For example, a relationship cleanup test should say that the related CI remains and its connection to the main CI disappears. That statement makes validation more precise than checking whether the strategy field contains the desired label.
Create a CI deletion strategy for pattern discovery
Have a pattern that discovers the CIs you intend to manage. To set the strategy, use cloud_admin, service_mapping_admin, discovery_admin, or admin. Starting with Visibility Content version 6.30.0, pd_admin and pd_mid are also supported for this action. Check the release and installed content version on your instance before relying on that expanded role support.
- Enter sa_ci_to_pattern.list in the application filter to open the related CI type records.
- Filter the list for the CI type you want to manage. For a cloud database, the relevant type can be cmdb_ci_cloud_database.
- Check that the record belongs to the intended pattern and CI type before changing it.
- In the list, double-click the value in the Deletion Strategy column.
- Select Keep, Delete, Mark as absent, Delete relations, or Mark as retired according to the outcome you approved.
- Read the value back and record the pattern, CI type, previous value, and selected value in your change notes.
This list procedure also supports setting a strategy for AWS and Azure database CIs. Tracked configuration files use a separate route. Open Pattern Designer, open the pattern, select the Tracked Files tab, and choose Edit deletion strategy for the configuration files of this pattern. The same five values apply there. Keep configuration file work as a separate item in the implementation checklist.
When the reason for changing the strategy comes from changed pattern logic, review Pattern Designer authoring and validation alongside the lifecycle decision. The strategy should reflect what the pattern is intended to find, with an explicit explanation for what should happen when it stops finding it.
Test the comparison across discovery runs
A deletion strategy works from discovery comparisons. The first run has no earlier result to compare against, so it does not apply a strategy. Build the test around a known baseline and a later run in which a chosen CI is missing. A first run with no deletion is not evidence that the setting failed.
Use a controlled test scope. Capture the main CI, the related CI, their relationship, and the related CI’s Status before making a change. Prefer a record whose intended disappearance can be explained and checked. Write down what discovery should find in the baseline and what should be missing in the later run.
For a related CI test, keep the main CI discoverable while making the selected related CI unavailable to the pattern. Then compare the later results with the baseline and inspect the CMDB outcome. This isolates the missing related object from a broader failure to discover the main object.
- For Keep, verify that the selected CI remains unchanged.
- For Delete, verify record removal and inspect the relationships that were attached to it.
- For Delete relations, verify that the CI remains while its relationship to the main CI is removed.
- For status choices, inspect Status [install_status] and check record and relationship retention against the expected behavior.
Record the discovery runs used for the test so another administrator can reproduce the comparison. After a pattern change, include the lifecycle checks in the work to finalize a pattern. A pattern that finds the right objects also needs an agreed response when a previously discovered object disappears.
Investigate unexpected outcomes before widening scope
If a missing CI stays in place, inspect the strategy record and the comparison sequence first. Confirm that you changed the intended pattern’s CI type and that a previous discovery result exists. Then check whether the object was actually absent from the later pattern results. Do not change several strategies together to chase an unexplained result.
If a record disappears when you expected a status change, check its table against the Mark as absent exceptions. If a dependency view changes but the CI remains, distinguish a relationship result from a record result. These are separate effects, and a visual change alone does not identify which strategy ran.
For CIs maintained by several data flows, include the other maintainers in the review of the proposed result. Use CMDB integration patterns to frame that wider data ownership discussion. Treat retention, relationship removal, and retirement as explicit decisions rather than interchangeable cleanup labels.
For help planning this work, see ServiceNow implementation.
Questions to settle during the deletion strategy review
Assign approval for what a missing CI means
As a governance choice, involve the person accountable for the CI’s lifecycle and the team responsible for discovery. Ask them to agree on the evidence needed before absence becomes retirement or deletion. Capture that agreement with the setting so future administrators understand the reason behind it.
Record the reasons behind a handover
Include the affected pattern and class, the business reason, the expected CMDB result, the test evidence, and the owner of follow-up investigation. Include an example record identifier from the test environment. This lets the next administrator assess the decision without reconstructing the original discussion.
Treat an uncertain disappearance as a decision to document
Recommend an investigation step before authorizing record removal. Ask whether the object was intentionally removed and whether the discovery scope still represents the intended environment. Uncertainty belongs in the operational decision record; it should not be hidden behind a field value selected for convenience.
Expand the rollout only after the sample is explained
Use an acceptance decision based on observed outcomes, rather than the number of records edited. The reviewer should be able to explain the sample’s result, identify the affected relationships, and state who will examine unexpected changes. Expand the scope after that explanation is supported by the test evidence.