zmNinja Mass Delete

Discussion topics related to mobile applications and ZoneMinder Event Server (including machine learning)
Post Reply
neepninja
Posts: 6
Joined: Sat Jun 13, 2020 11:03 am

zmNinja Mass Delete

Post by neepninja »

Hello. Is there a way to mass delete all events in ZM using the zmNinja app on android? At the moment the only way I can find is to go into events list and click on the circle with minus and delete one by one. Not ideal but gets the job done but when yo uhave over 50 events this process becomes time consuming. Yes I could go into zm and select all and delete all but on the go the app would be ideal.

Thanks.
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: zmNinja Mass Delete

Post by asker »

(Moving this post to the mobile forum)

No, there isn't. A big reason for that is because there are no bulk delete APIs. The APIs only allow deletion on a per event basis.
So even if there was a UI option, it would result in calling a single API for a single event and keep looping it, which would be a poor experience compared to bulk deletion in the ZM web console which directly hits the DB.
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
Post Reply