You're offline — showing cached data

Prune WhatsApp downloaded media older than 30 days

cleanup-wa-media
2026-06-13 06:14:46 SAST
← Back to Tasks

OVERRIDES runtime profile: uses direct_shell because this is a deterministic filesystem cleanup command with no Claude/Codex or LLM API invocation.

Daily 03:45 UTC (05:45 SAST). Deletes image files older than 30 days from the WhatsApp monitor's media cache. These are downloaded for the image-OCR pipeline (Cayla's hockey fixtures etc.) and need a hard TTL to prevent unbounded disk growth on a 40 GB Hetzner box.

The DB row's media_path will dangle for deleted files; that's intentional — deletion is the signal that the image is past relevance and shouldn't be re-OCR'd. The OCR state-file dedup keeps record_ids forever (capped at 2000 entries) so already-processed records are still skipped.

Daily at 03:4545 3 * * *
Yes
shell
120s
No
in 22h (2026-06-14 03:45)

Task Definition

tasks/cleanup-wa-media.md
shell
set
No
No
find /home/lucienne/workspace/data/whatsapp/media -type f -mtime +30 -print -delete 2>/dev/null | wc -l; find /home/lucienne/workspace/data/whatsapp/media -mindepth 1 -type d -empty -delete 2>/dev/null

Edit Schedule

Result:
8
Runs (7d)
8
Completed
0
Failed
0
Timeout
100%
Success (7d)
0s
Avg Duration
maintenance whatsapp housekeeping

Run History (8)

StartedFinishedStatusDurationOutputLog
2h ago 2h ago completed 0s
0
View log
1d ago 1d ago completed 0s
0
View log
2d ago 2d ago completed 0s
0
View log
3d ago 3d ago completed 0s
0
View log
4d ago 4d ago completed 0s
0
View log
5d ago 5d ago completed 0s
0
View log
6d ago 6d ago completed 0s
0
View log
7d ago 7d ago completed 0s
0
View log

Comments (0)

No comments yet — add instructions for Luci
Help