- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
I need to have the retention policy for records in the Knowledge Use [kb_use] table set to [time period] so the number of records in the table stay manageable.
Acceptance criteria is like there are records in the [kb_use] table exactly [time period] old, when the system is left for 24 hours those records are automatically deleted from the table.
So is this something out of the box or we need to customize this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
6 hours ago
Hi,
This is available OOTB; you don't need to build a custom scheduled job.
Navigate to All >>System Maintenance >>Table Cleanup (in some releases, this appears under Instance Scan).
Search for the kb_use table and open its Auto Flush configuration.
Enable the cleanup job and set Age in seconds to your required retention period.
Save the configuration and verify the cleanup behavior.
By default, the retention is set to 365 days. The cleanup job must be activated for older records to be deleted automatically.
Modify the data retention policy for View logs
https://www.servicenow.com/docs/r/servicenow-platform/knowledge-management/auto-flush-kb-use.html
Helpful? Please mark the response as Accepted Solution ✅ and close the thread — this helps future readers find the solution faster.
Regards,
Sachinvic
✨ ArchX Certified | ✨ 16x ServiceNow AI MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
6 hours ago - last edited 6 hours ago
The OOB autoflush rule for kb_use is already defined in the sys_auto_flush table.
You just need to connect with your business stakeholders to confirm the retention period for KB articles, update the existing OOB rule accordingly, and activate it.
Link: https://<your_instance_name>.service-now.com/sys_auto_flush.do?sys_id=b7756171878d50106664857fe5cb0b14&sysparm_view=&sysparm_record_target=sys_auto_flush&sysparm_record_row=1&sysparm_record_list=tablenameSTARTSWITHkb_use%5EORDERBYname&sysparm_record_rows=1
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
6 hours ago
Hi,
This is available OOTB; you don't need to build a custom scheduled job.
Navigate to All >>System Maintenance >>Table Cleanup (in some releases, this appears under Instance Scan).
Search for the kb_use table and open its Auto Flush configuration.
Enable the cleanup job and set Age in seconds to your required retention period.
Save the configuration and verify the cleanup behavior.
By default, the retention is set to 365 days. The cleanup job must be activated for older records to be deleted automatically.
Modify the data retention policy for View logs
https://www.servicenow.com/docs/r/servicenow-platform/knowledge-management/auto-flush-kb-use.html
Helpful? Please mark the response as Accepted Solution ✅ and close the thread — this helps future readers find the solution faster.
Regards,
Sachinvic
✨ ArchX Certified | ✨ 16x ServiceNow AI MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
6 hours ago - last edited 6 hours ago
The OOB autoflush rule for kb_use is already defined in the sys_auto_flush table.
You just need to connect with your business stakeholders to confirm the retention period for KB articles, update the existing OOB rule accordingly, and activate it.
Link: https://<your_instance_name>.service-now.com/sys_auto_flush.do?sys_id=b7756171878d50106664857fe5cb0b14&sysparm_view=&sysparm_record_target=sys_auto_flush&sysparm_record_row=1&sysparm_record_list=tablenameSTARTSWITHkb_use%5EORDERBYname&sysparm_record_rows=1
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti
