Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
Discovery pattern with deletion strategy for "tracked file" not deleting once the file is gone on the target device. - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Discovery pattern with deletion strategy for "tracked file" not deleting once the file is gone on the target device.
KB0746913

Discovery pattern with deletion strategy for "tracked file" not deleting once the file is gone on the target device.


1085 Views Last updated : Apr 7, 2024 public Copy Permalink
KB Summary by Now Assist

Issue

Description

Customer can configure File Tracking on a specific pattern, in these case for Windows - OS Servers. Once the file is gone on target he has set the strategy to Deletion. But when discovery is run, it doesn't delete those files.

This KB address how the deletion strategy works and when. Please review the additional information.

Procedure

  1. Navigate to the sa_pattern.LIST
  2. Open the pattern where you want to set the strategy for
  3. In this case, the field is "Tracked Files" and set this strategy to Delete

Applicable Versions

All versions.

Additional Information


The way deletion strategy works is by comparing the previous discovery result for a given device with the current one, and the defined deletion strategy is executed based on the delta. 


So, if in previous discovery device X was discovered, and in the current one it's missing, and deletion strategy defined to be "Delete", then the device is deleted. On the same note, if it's defined to be "Keep", then the device is kept in the CMDB. 
The deltas are being calculated only between two consecutive discoveries. So, if now I take the same device X, which was kept in the CMDB based on its deletion strategy, and now I change it to "Delete", it won't be deleted on the next discovery since it has already been missing from the previous one. 

So, in this specific case, you should remove the file manually. 
In the future, if you have any files on Windows Server that are currently still being discovered, once they're removed from the machine they'll be removed from the CMDB as well, as expected. 


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.