clean_workspace
Delete reclaimable developer artifacts from a workspace with safety checks, preview via dry-run, and quarantine removed files in the Recycle Bin.
Instructions
Clean reclaimable developer artifacts with safety checks and Recycle Bin quarantine.
IMPORTANT: dry_run is True by default for safety. You must explicitly set dry_run=False to perform deletion.
Args: path: Root directory of the workspace. target_paths: Explicit paths to clean. If omitted, cleans all non-secret artifacts matching criteria. artifact_types: Filter specific artifact types to clean. mode: Deletion mode ('trash' for OS Recycle Bin quarantine, 'permanent' for direct deletion). dry_run: If True, simulates cleanup without removing files. Default is True.
Returns: Clean report with status of removed items, freed space, and any errors.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | trash | |
| path | No | . | |
| dry_run | No | ||
| target_paths | No | ||
| artifact_types | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||