unlink
Remove a single file with preview support. Safely fails on directories, returns JSON with removed path.
Instructions
Remove a single file (not directories) with dry-run support. Destructive and irreversible. Fails safely on directories. Use --dry_run to preview. Returns JSON with the removed path. Use to delete individual files by name. Not for recursive directory removal — use 'rm --recursive'. Not for empty directories — use 'rmdir'. See also 'rm', 'rmdir'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Report operations without changing files. | |
| force | No | Ignore missing paths. | |
| paths | Yes | Files or symlinks to unlink. |