Script which deletes the event queue records from sysevent [Event Queue] table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2020 03:28 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2020 03:46 AM
Hi Varun,
I found something around this; not sure if this is what you are looking foe
Schedule Job: Clean up events with NULL queue
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2020 04:33 AM
Hi
Why do you want to delete events at all?
You do not need to care about it.
Even more, if you delete events, you need to take care WHICH ones are really good to be deleted.
Let me know.
BR Dirk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2020 09:57 PM
Hi Varun,
Any update on this?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2020 10:30 PM
Hi Varun,
Refer this link, it might help you:
If my answer helped you in any way, mark answer as helpful and correct.
Thanks and regards,
Megha.