preview_cleanup
Simulate workspace cleanup to preview which artifacts would be removed and estimate reclaimable space before deletion, enabling safe review of cleanup actions.
Instructions
Dry-run simulation of workspace cleanup to inspect items and reclaimable space before executing.
Args: path: Root workspace path. target_paths: Optional list of explicit paths to clean. artifact_types: Optional list of artifact types to target. older_than_days: Only include artifacts inactive for at least N days.
Returns: Preview report with items that would be removed and total reclaimable bytes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | . | |
| target_paths | No | ||
| artifact_types | No | ||
| older_than_days | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||