Hello to all,
Is there a way to purge all events?
Thanks a lot!
Simon
Purge all events
Re: Purge all events
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
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
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.
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
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
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
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
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
I was thinking that the "Delete" was implicit in he execute.
Thanks for the support.
Simon