Move to trash
trash_fileMove a file to its zone's trash instead of deleting it, preserving relative path and adding an arrival timestamp. Requires trash configured and a current rev in rev-overwrite zones.
Instructions
Discard a file by moving it into the trash of its own zone, keeping its relative path and adding an arrival timestamp to the name. There is no delete: this is the only way to remove something. Fails if the zone has no trash configured. In a zone with overwrite="rev" the current rev is required — you have to read a file before throwing it away. To restore, move_file it back out of the trash.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rev | No | Current rev of the file, required in a zone with overwrite="rev". | |
| path | Yes |