You're offline — showing cached data

Prune ccgram photo/document uploads older than 14 days

cleanup-ccgram-uploads
2026-06-13 06:11:43 SAST
← Back to Tasks

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

Weekly Sunday 03:30 UTC (05:30 SAST). Walks every .ccgram-uploads/ directory under ~/workspace and ~ and deletes files older than 14 days.

ccgram saves every Telegram photo/document upload into the session cwd's .ccgram-uploads/ so Claude can read it. Without cleanup these accumulate indefinitely. 14d retention is enough for any in-flight ticket reference.

Tunable via env: CCGRAM_RETENTION_DAYS in the command line above.

Sun at 03:3030 3 * * 0
Yes
shell
300s
No
in 21h (2026-06-14 03:30)

Task Definition

tasks/cleanup-ccgram-uploads.md
shell
set
No
No
CCGRAM_RETENTION_DAYS=14 python3 /home/lucienne/workspace/scripts/cleanup_ccgram_uploads.py

Edit Schedule

Result:
1
Runs (7d)
1
Completed
0
Failed
0
Timeout
100%
Success (7d)
6s
Avg Duration
maintenance ccgram housekeeping

Run History (1)

StartedFinishedStatusDurationOutputLog
6d ago 6d ago completed 6s
ccgram-uploads cleanup: removed 25 files (1.9 MB) older than 14d across 3 dirs
View log

Comments (0)

No comments yet — add instructions for Luci
Help