How can I delete these quickly?
Creating and executing a filter is unreasonablely slow, manually deleting each page of events (1700 pages) is not feasible.
I suppose deleting (rm -rf *.jpg) files directly from the camera's event folder will work, but what other steps...files/folders/database..are required?
Solution Update:
Step 1: Stop the Zoneminder service :
Method 1: Click on "Running" at top of the Zoneminder Console, Select Stop and Apply
Method 2: From server commandline (Ubuntu 16.04 in my case) "sudo systemctl stop zoneminder"
Confirm Zoneminder Service is stopped "sudo systemctl status zoneminder"
The result should look like
Code: Select all
user@your_server:/var/cache/zoneminder/events/2/18/05/05$ sudo systemctl status zoneminder
● zoneminder.service - ZoneMinder CCTV recording and surveillance system
Loaded: loaded (/lib/systemd/system/zoneminder.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Sat 2018-05-05 21:25:04 EDT; 8s ago
Process: 26266 ExecStop=/usr/bin/zmpkg.pl stop (code=exited, status=0/SUCCESS)
Process: 24209 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=0/SUCCESS)
Main PID: 24225 (code=exited, status=0/SUCCESS)
May 05 21:24:51 your_server sudo[26275]: root : TTY=unknown ; PWD=/usr/share/zoneminder/www ; USER=www-data ; COMMAND=/bin/true
May 05 21:24:51 your_server sudo[26275]: pam_unix(sudo:session): session opened for user www-data by (uid=0)
May 05 21:24:51 your_server sudo[26275]: pam_unix(sudo:session): session closed for user www-data
May 05 21:24:51 your_server sudo[26277]: root : TTY=unknown ; PWD=/usr/share/zoneminder/www ; USER=www-data ; COMMAND=/usr/bin/zmdc.pl check
May 05 21:24:51 your_server sudo[26277]: pam_unix(sudo:session): session opened for user www-data by (uid=0)
May 05 21:24:52 your_server sudo[26277]: pam_unix(sudo:session): session closed for user www-data
May 05 21:24:52 your_server sudo[26280]: root : TTY=unknown ; PWD=/usr/share/zoneminder/www ; USER=www-data ; COMMAND=/usr/bin/zmdc.pl shutdown
May 05 21:24:52 your_server sudo[26280]: pam_unix(sudo:session): session opened for user www-data by (uid=0)
May 05 21:25:03 your_server sudo[26280]: pam_unix(sudo:session): session closed for user www-data
May 05 21:25:04 your_server systemd[1]: Stopped ZoneMinder CCTV recording and surveillance system.
In my case I use a dedicated drive as outlined in the Wiki @ https://wiki.zoneminder.com/Using_a_ded ... Hard_Drive, so my events folder is at /CamDrive/Zoneminder/events/
Next, navigate to the camera folder you wish to clear. For example /CamDrive/Zoneminder/events/Camera1
The subfolders in the camera folders are numbered according to the Year/Month/Day/Hour/Minute/Seconds
So events for my Camera1 on April 5th 2018 would be in my folder /CamDrive/Zoneminder/events/Camera1/18/04/05
To delete all events for Camera1 in April 2018, I would run sudo rm -fr /CamDrive/Zoneminder/events/Camera1/18/04
To delete all events for Camera1 on April 5th 2018, I would run sudo rm -fr /CamDrive/Zoneminder/events/Camera1/18/04/05
To delete all events for Camera1 in 2018, I would run sudo rm -fr /CamDrive/Zoneminder/events/Camera1/18
Step 3: Restart Zoneminder service using Zoneminder Console, or, commandline sudo systemctl start zoneminder
The Zoneminder database should eventually update itself to the changes.
Note: Depending on how your installation is configured, you may need to go into the Options/System and activate RUN_AUDIT.