ssh_dir_batch_delete_files
Delete all files matching a specified pattern within a directory. Supports dry-run preview and optional sudo.
Instructions
Delete all files matching a pattern under a directory.
Returns: Dictionary with deletion status and details
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Base directory to search in | |
| pattern | Yes | File pattern to match for deletion (e.g. *.tmp) | |
| dry_run | No | Preview deletion without actually deleting | |
| use_sudo | No | Use sudo for the operation |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||