delete
Delete a single file or symlink and evict its cache entries. Returns statuses for deleted, dry-run preview, or not found.
Instructions
Delete one file or symlink and evict its cache entries.
Use this for explicit single-path removal instead of shelling out. A
missing path is reported as status not_found, not an error.
Statuses: deleted (removed), would_delete (dry-run preview only),
not_found (nothing was there). Constraints: one path only — no globs,
no recursion, no real-directory deletes. A symlink path deletes the link
itself, never its target.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File or symlink path (absolute, or relative to the project root). | |
| dry_run | No | Preview the outcome without deleting or evicting the cache. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| status | No | ||
| deleted | No | ||
| dry_run | No | ||
| symlink | No | ||
| truncated | No | ||
| cache_removed | No |