Cleanup & Maintenance
Old run directories accumulate over time. daggle provides cleanup commands to reclaim disk space.
CLI
daggle clean --older-than 30dRemoves run directories and logs older than the specified duration. Accepts d (days), h (hours), or w (weeks).
daggle clean --older-than 2w --dry-runThe --dry-run flag shows what would be deleted without removing anything.
API
curl -X POST http://localhost:8787/api/v1/runs/cleanup \
-H 'Content-Type: application/json' \
-d '{"older_than": "30d"}'daggleR
daggleR::cleanup(older_than = "30d")Disk usage considerations
- Each run stores stdout/stderr logs per step, an
events.jsonlfile, and ameta.jsonfile - DAGs that run frequently or produce verbose output can consume significant space
- Schedule periodic cleanup via cron or as a lifecycle hook in a maintenance DAG
- The
--dry-runflag is useful for estimating how much space will be freed before committing