How to delete records from table

Athena Mathews
Tera Contributor

Hello!

 

Requirement is that the records from the custom table that extends task table should be deleted on daily basis.

Condition to delete these is that these records should have been created x years ago and no update should have been done for few years. 

Every day the script should check for those which are created x years ago and delete these records. I have no idea how this can be done with a script. Please help me here! 

 

 

 

Regards,

Athena.

1 ACCEPTED SOLUTION

Mike_R
Kilo Patron
Kilo Patron

You can use table cleaner/auto flush

instanceName.service-now.com/sys_auto_flush_list.do?sysparm_query=&sysparm_view=

 

https://docs.servicenow.com/bundle/tokyo-platform-administration/page/administer/managing-data/conce...

View solution in original post

1 REPLY 1

Mike_R
Kilo Patron
Kilo Patron

You can use table cleaner/auto flush

instanceName.service-now.com/sys_auto_flush_list.do?sysparm_query=&sysparm_view=

 

https://docs.servicenow.com/bundle/tokyo-platform-administration/page/administer/managing-data/conce...