Purge Event History?

I have set my Event History Size to 10, and my State History Size to 10.
When I go into Runtime Statistics I see many devices with thousands of Events, and thousands of States! Also, if I select one of those devices with large Events and States and drill into Event history, I can see events from a year ago! How do I purge this?
I only started looking into this because I went into a Scene and tried to activate it and saw errors in the log that it failed because the event log was full!
Thanks in advance for the help!

1 Like

Try checking these and see where yours are set. I set mine for 14 days a long time ago, and have noticed no issues.

1 Like

the maxDeviceStateAgeDays was 7
the maxEventAgeDays was 365

I ran the commands to the endpoints you shared.

Thanks for sharing!