actiond_cleanup
Delete terminal CI/CD jobs and artifacts to reclaim disk space. Specify retention days or set all=true to delete every terminal job; confirm before running as it is destructive.
Instructions
Reclaim disk space by deleting terminal CI/CD jobs (done/failed/cancelled) and their artifact directories. Pending and running jobs are never deleted. Default retention is 7 days; pass days=0 or all=true to delete every terminal job. Destructive and irreversible: deleted job records and artifacts cannot be recovered, so confirm intent — especially with all=true — before calling. Returns a summary with deleted_jobs, deleted_dirs, and the retention window applied.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Delete all terminal jobs regardless of age | |
| days | No | Retention window in days (default 7; 0 = all terminal jobs) |