Move to trash
trash_fileMove a file into its zone's trash, preserving its relative path and adding an arrival timestamp. Use it to remove files since permanent delete isn't available.
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. A directory is not discarded as a unit: trash its files one by one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rev | No | Current rev of the file, required in a zone with overwrite="rev". | |
| path | Yes |