Modify the data retention policy for knowledge usage metrics
Remove unwanted and older data from the knowledge usage metrics [kb_usage_metrics] table through the data retention policy.
Before you begin
Role required: maint and admin
About this task
Activating the data retention policy for the kb_usage_metrics table deletes records that you no longer need.
Procedure
-
Navigate to All > System Maintenance > Table Cleanup.
-
In the Tablename column, search for
kb_usage_metricsand click the kb_usage_metrics link. -
On the Auto Flush form, activate the kb_usage_metrics table cleanup job by selecting the Active check box.
-
Adjust the duration the system waits before deleting the records by modifying the value in the Age in seconds field.
By default, the Age in seconds field value is set to 2,592,000 seconds (equivalent to 30 days). For more information, see Autoflush form.
-
Click Update.
Parent Topic:Collect knowledge usage metrics
---
title: Modify the data retention policy for knowledge usage metrics
description: Remove unwanted and older data from the knowledge usage metrics \[kb\_usage\_metrics\] table through the data retention policy.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/servicenow-platform/knowledge-management/Modify-data-retention-policy-knowledge-usage-metrics.html
release: brazil
product: Knowledge Management
classification: knowledge-management
topic_type: task
last_updated: "2026-09-10"
reading_time_minutes: 1
breadcrumb: [Collect knowledge usage metrics, User criteria diagnostics for Knowledge Management, Configuring Knowledge Management, Knowledge Management, Manage content capabilities, Extend ServiceNow AI Platform capabilities]
---
# Modify the data retention policy for knowledge usage metrics
Remove unwanted and older data from the knowledge usage metrics \[kb\_usage\_metrics\] table through the data retention policy.
## Before you begin
Role required: maint and admin
## About this task
Activating the data retention policy for the kb\_usage\_metrics table deletes records that you no longer need.
## Procedure
1. Navigate to **All** > **System Maintenance** > **Table Cleanup**.
2. In the **Tablename** column, search for `kb_usage_metrics` and click the **kb\_usage\_metrics** link.
3. On the Auto Flush form, activate the kb\_usage\_metrics table cleanup job by selecting the **Active** check box.
4. Adjust the duration the system waits before deleting the records by modifying the value in the **Age in seconds** field.
By default, the **Age in seconds** field value is set to 2,592,000 seconds \(equivalent to 30 days\). For more information, see [Autoflush form](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/atf-auto-flush.md).
5. Click **Update**.
**Parent Topic:**[Collect knowledge usage metrics](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/servicenow-platform/knowledge-management/Guest-user-diagnostic.md)
| title | Modify the data retention policy for knowledge usage metrics |
| description | Remove unwanted and older data from the knowledge usage metrics \[kb\_usage\_metrics\] table through the data retention policy. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/servicenow-platform/knowledge-management/Modify-data-retention-policy-knowledge-usage-metrics.html |
| release | brazil |
| product | Knowledge Management |
| classification | knowledge-management |
| topic_type | task |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | Collect knowledge usage metricsUser criteria diagnostics for Knowledge ManagementConfiguring Knowledge ManagementKnowledge ManagementManage content capabilitiesExtend ServiceNow AI Platform capabilities |