The CreatorCon Call for Content is officially open! Get started here.

Script which deletes the event queue records from sysevent [Event Queue] table

varunkumar1
Tera Contributor

Hi Team,

Do we have any OOB script which deletes the event queue records from sysevent [Event Queue] after certain amount of days/time.

Please share me if there is any OOB script.

 

Thannks

 

5 REPLIES 5

Gowrisankar Sat
Tera Guru

At the first point you shouldn't delete them, unless they are large number of events stuck in queued state and HI Support Team will help you in this regard.

Events will get deleted after every 7 days, they is a Table Rotation in Place for sysevent table. If you want to implement this you need to modify it in the table rotation record of sysevent.

Check this doc to know more about table rotation:

https://docs.servicenow.com/bundle/orlando-platform-administration/page/administer/platform-performa...