---
sourceDocument: Brazil IT Operations Management
sourceDocumentLink: https://www.servicenow.com/docs/r/it-operations-management

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil IT Operations Management

ft:clusterId :

    - itom

bundleId :

    - itom

workflow :

    - Technology


---

# CI deletion strategies for pattern discovery

# CI deletion strategies for pattern discovery {#ariaid-title1}

Release version: Brazil  
Updated November 16, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of CI deletion strategies for pattern discovery

When using pattern-based discovery in ServiceNow Discovery, you can specify how to handle configuration items (CIs) in the CMDB that Discovery can no longer find.
These deletion strategies apply only to pattern-based discovery (not probe- or sensor-based) and enable you to manage the lifecycle of both main and related CIs discovered by a pattern.
Show full answer Show less  

## Key Features

* **Main CI and Related CIs Identification:** Patterns identify a main CI type (e.g., IIS web server) and discover related CIs such as hosting machines, configuration files, virtual directories, and websites, building a dependency map.
* **Deletion Strategy Configuration:** Strategies are configured per CI type in the Related CI Types \[sacitopattern\] table. For Application or Cloud Resource patterns, you can set a strategy for the main CI; Infrastructure patterns do not allow main CI strategy changes.
* **Execution Timing:** Deletion strategies are applied each time Discovery runs with the pattern. On subsequent runs, Discovery compares current findings with previous results and applies the chosen strategy to any CIs it no longer finds.
* **Available Deletion Strategies:**
  * **Keep:** Preserve the CI record without changes (default).
  * **Delete:** Remove the CI record and all its relationships from the CMDB.
  * **Mark as absent:** Set the CI's status to "Absent" indicating Discovery cannot find it; does not delete the CI or relationships except for network adapters and IP addresses, which are deleted.
  * **Delete relations:** Remove only relationships between the related CI and main CI, leaving the CI record intact.
  * **Mark as retired:** Set the CI's status to "Retired" signaling it is no longer used by Discovery; does not delete the CI or relationships.
* **Limitations:** Deletion strategies do not apply to related entries, which are identification rules based on related CIs.

## Practical Application for ServiceNow Customers

By configuring CI deletion strategies in pattern discovery, you can maintain an accurate and up-to-date CMDB by automating how obsolete or missing CIs are handled. This helps prevent stale data, supports compliance, and improves the reliability of service maps and dependency views. Customers should review and set appropriate deletion strategies per CI type to align with their operational policies and ensure CMDB integrity after each discovery run.  
When you perform discovery with a pattern, you can choose what to do with configuration items (CIs) that are in the Configuration Management Database (CMDB) but Discovery can no longer find.  
Note:  
Deletion strategies are available only with patterns, not with probe-based or sensor-based discovery.
When you use a pattern to perform discovery, you identify a CI Type, which is the main CI you're trying to find, such as an IIS web server or Tomcat server. Discovery can also find related CIs and populate the CMDB accordingly. For example, after Discovery finds an IIS server with the IIS pattern, it can also find these related CIs:

* The Windows machine that hosts the web server
* The configuration files for the IIS server
* The IIS virtual directories
* The website that the IIS server hosts
{#deletion-strategy__ul_twt_lwh_vz}  
The dependency map on the main CI also shows the related CIs, as illustrated by the following graphic:Figure 1. An example of an IIS server main CI and its related CIs

The Related CI Types \[sa_ci_to_pattern\] table contains a record for each CI type that a pattern finds. Each record determines the deletion strategy for CIs of that type. You can set a deletion strategy for the main CI only when
the pattern type is Application or Cloud Resource. You can't set one for the main CI in an Infrastructure pattern. To change a strategy, see [Set a deletion strategy](https://www.servicenow.com/docs/~Nq2MIrmIA4aqWQxHZpR6g "Set a deletion strategy when you want to take action on a configuration item (CI) that Discovery can no longer find through pattern discovery.").  
You can view the list of CI types for the pattern as the following image illustrates:Figure 2. Example CIs related to an IIS server

A deletion strategy takes effect each time you run Discovery with the pattern. Discovery compares the results with what was found before and applies the strategy to a CI that it can no longer find. The first run has nothing to compare with, so no strategy applies.
These deletion strategy options are available:  
{#deletion-strategy__table_xl2_jwf_5z__entry__2}

| Value | Description |
|-|-|
| Keep | Preserves the CI record and makes no other changes to it. This option is the default setting. |
| Delete | Deletes the CI record from the CMDB, together with its relationships. |
| Mark as absent | Marks the Status \[install_status\] field of the CI record as Absent, meaning that Discovery can't find the CI. This status doesn't instruct the system to delete the CI or or its relationships. Note: There are two exceptions. Discovery deletes CIs in the cmdb_ci_network_adapter and cmdb_ci_ip_address tables when it marks them as absent. |
| Delete relations | Deletes only the CI relationships between the related CI and the main CI. |
| Mark as retired | Marks the Status \[install_status\] field of the CI record as Retired, meaning that Discovery no longer uses this CI. This status doesn't instruct the system to delete the CI or its relationship. |
[ ]

{#deletion-strategy__table_xl2_jwf_5z}  
Note:  
Deletion strategies aren't available for related entries, which are identification rules that are based on related CIs. For more information, see [Related entries](https://www.servicenow.com/docs/access?context=c_IdentificationRules&version=brazil&pubname=brazil-servicenow-platform&ft:locale=en-US#section_ftc_tg4_j1b).
* **[Set a deletion strategy](https://www.servicenow.com/docs/~Nq2MIrmIA4aqWQxHZpR6g)**   
  Set a deletion strategy when you want to take action on a configuration item (CI) that Discovery can no longer find through pattern discovery.

