delete
Remove one file or symlink and evict its cached data. Use for explicit single-path deletion without shell commands.
Instructions
Delete one file or one symlink path and evict cache entries for that path.
Use this for explicit single-path removal instead of shelling out.
Normal statuses:
deleted: file or symlink path was removedwould_delete: dry-run preview onlynot_found: path did not exist; this is not an error
Constraints:
No globs
No recursive delete
No real-directory delete
If
pathis a symlink, deletes the link itself, not the target
Args: path: File or symlink path (absolute or relative to project root). dry_run: Preview without deleting or evicting cache.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| dry_run | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| truncated | No | ||
| status | No | ||
| path | No | ||
| deleted | No | ||
| dry_run | No | ||
| cache_removed | No | ||
| symlink | No |