Page 1 of 1

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

Posted: Fri May 13, 2016 6:34 am
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

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

Posted: Fri May 13, 2016 9:52 am
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.