file_delete
Delete one specified file with expected-hash conflict protection and dry-run validation; returns an operation ID for undo if the path hasn't been recreated.
Instructions
Delete one file and return operation_id and undo_available. Destructive.
Deletes exactly the named file: no glob, no recursion, no directory
removal, and no widening of the workspace root. expected_hash refuses the
delete when the content changed since it was read (CONTENT_CONFLICT).
dry_run validates and deletes nothing. Otherwise the operation is
recorded, and undo restores the file while nothing else has recreated
that path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| dry_run | No | ||
| expected_hash | No |