API: Delete event removes event from database, but doesn't remove image files from disk

Forum for questions and support relating to the 1.29.x releases only.
Locked
anthracene
Posts: 1
Joined: Fri May 13, 2016 6:20 am

API: Delete event removes event from database, but doesn't remove image files from disk

Post by anthracene »

When I delete an event using the API, e.g.

Code: Select all

curl -XDELETE -s -k -b cookies.txt https://localhost/zm/api/events/37.json
The event disappears from the zoneminder interface, but the corresponding image files aren't deleted from /var/cache/zoneminder/events .

I have fast delete turned off in options.

I've read that the API isn't fully built out, but this is one of the documented calls, so it seems like it ought to work?

Not sure how relevant the rest of this is, but for completeness: This is on Ubuntu 14.04 LTS. I followed the install instructions here: http://zoneminder.readthedocs.io/en/sta ... buntu-14-x
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: API: Delete event removes event from database, but doesn't remove image files from disk

Post by asker »

That is correct. The APIs only delete the DB entry, even if fast delete is off. It relies on zmaudit deleting the frames and files in the next cycle.

We will eventually get to a point where it will honor FAST_DELETE and act in accordance, but as of now, it ignores that setting.
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
Locked