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.
How to use Table Cleaner to remove unwanted data - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • How to use Table Cleaner to remove unwanted data
KB0694151

How to use Table Cleaner to remove unwanted data


51114 Views Last updated : Jun 10, 2025 public Copy Permalink English (Original)
  • English (Original)
  • Japanese
KB Summary by Now Assist

Issue

The Table Cleaner feature can be used to delete unwanted data in your ServiceNow instance. This article will assist in creating a new Table Cleaner. The process is designed not to impact performance as it deletes the data in batches/chunks.

This currently applies to only instances running with MySQL/MariaDB database. 

NOTE: Table Cleaner cannot be used for sharded tables, table rotation, or table extension.

Resolution

The following instructions outline the creation of a new Table Cleaner:

  1.  In the Navigator filter, type: sys_auto_flush_list.do
  2. Click on New and a screen will be displayed as per the following attached screenshot
  3. Based upon the clean up requirements fill in the following fields accordingly
      • Table Name - Identify Table Name to be cleaned
      • Matchfield - Field based on which records will be cleaned e.g. sys_created_on
      • Age in seconds - How old records to be deleted - Enter the number in seconds - 2592000 for 30 days old records. Enter 0 in seconds if you want to delete all the records for specified condition as specified in Conditions
      • Active - Check the checkbox to active
      • Application - This will be greyed out
      • Cascade delete – Check the checkbox to delete cascade relationships to the table
      • Conditions - Add the specified filter condition or do not add it if all the records related of certain age needs to be deleted as specified in Age in seconds
  4. Click Submit and the record will be created. On the next execution of the Table Cleaner job this new rule will be executed

The view for the next execution of the Table Cleaner job post execution of the new rule

Related Links

  • KB0717791 - Mass-Deletion and excess data management recommendations

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.