Browse the docs

Move a file to the Trash

Moves a file to the Trash, where it can be put back.

Move path to the Trash

Details #

Moves the file to the Trash and gives its place there as the output. Nothing is deleted for good.

Parameters #

ParameterTypeRequiredValuesWhat it does
intotextThe variable that receives the file's path in the Trash.
pathtextThe file. Optional when a file trigger fired.
sourcetext

Every step also accepts label, onFailure, timeout and dryRunSafe.

Examples #

Move a file to the Trash
Do
  1. Move “old.dmg” to the Trash
Open in Switchboard to try it

Gotchas #

  • Files in locked folders can fail with a permission message.

  • In a dry run it changes nothing and says what it would do.

See also #

File operation, Move or sort a file