Deleting Stored ZM Files

Support and queries relating to all previous versions of ZoneMinder
Locked
ecko3420
Posts: 7
Joined: Thu Jan 31, 2008 2:30 am

Deleting Stored ZM Files

Post by ecko3420 »

So I have read the ZM manual up and down, i was wondering if there is another way of deleting video besides doing a hard delete?
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

You can delete via the filter window or though the event windows or hard delete the numbered event folders and zm audit will clean the database.
hvisser
Posts: 14
Joined: Thu Jan 17, 2008 8:32 pm

Post by hvisser »

If you are talking about just video (like mpg files generated when uploading via email.)

I have the following script which runs daily via cron to delete

Code: Select all

#!/bin/bash
cd /tmp
find / -name E*.mpg > Events.lst
awk '{print "rm -vf "$0}' Events.lst > Events.del
chmod +x Events.del
./Events.del > Events.log
rm -vf Events.lst
rm -vf Events.del
I am sure there are other ways, but it works quite well for me.

If you are talking about full events (the individual jpg frames created when recording), as Cordel said, the filter window is probably your best place.
Locked