Purge all events

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
xefil
Posts: 53
Joined: Wed Jul 19, 2017 1:30 pm

Purge all events

Post by xefil »

Hello to all,

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

Simon
xefil
Posts: 53
Joined: Wed Jul 19, 2017 1:30 pm

Re: Purge all events

Post 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
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Purge all events

Post 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.
xefil
Posts: 53
Joined: Wed Jul 19, 2017 1:30 pm

Re: Purge all events

Post 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
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Purge all events

Post 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.
xefil
Posts: 53
Joined: Wed Jul 19, 2017 1:30 pm

Re: Purge all events

Post 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
Post Reply