Page 1 of 1

Purge all events

Posted: Sat Apr 11, 2020 9:38 pm
by xefil
Hello to all,

Is there a way to purge all events?
Thanks a lot!

Simon

Re: Purge all events

Posted: Fri Apr 17, 2020 12:38 pm
by xefil
Hi there!
No way to delete all events?
I would like to not use 'rm' or MySQL manually.
The scripts / filters are not working (or not as expected...)

Thanks, Simon

Re: Purge all events

Posted: Fri Apr 17, 2020 5:50 pm
by bbunge
One way is to create a filter to delete events older than one day.
Archive Status equal to Unarchived only and Start Date less than or equal to -1 day limit to first 1000 results only Delete all matches.

Did not try but -1 hour should work, too.

Still this will take time. Would not go over 1000 results as the filter should reload every 6 minutes.

Once you have pared events down you can delete the rest from console.

Re: Purge all events

Posted: Fri Apr 17, 2020 7:28 pm
by xefil
Hello,

Thanks for answer, but what do you mean "Once you have pared events down you can delete the rest from console." ?
Does the Filter delete only the Database and not loca files ?

Thanks!

Simon

Re: Purge all events

Posted: Sat Apr 18, 2020 1:03 pm
by bbunge
No, the filter removes files and database records. By console I mean the Zoneminder console, view events, check the box and click delete.

Re: Purge all events

Posted: Mon Apr 20, 2020 7:21 am
by xefil
Oh, thanks, so stupid, I was executing, but not selecting it and pressing delete.
I was thinking that the "Delete" was implicit in he execute.

Thanks for the support.

Simon