perform_auto_cleanup
Automatically remove outdated output files based on age and retention policies, offer a dry-run preview, and always preserve a configurable number of recent files.
Instructions
Perform automatic cleanup of old output files based on age and retention policies. Supports dry-run preview and preserves a configurable number of recent files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | If true, preview cleanup without deleting files. Default: true. | |
| max_age_hours | No | Files older than this (in hours) will be deleted. Default: 24 hours. | |
| preserve_recent | No | Number of most recent files to preserve regardless of age. Default: 10. |