Move to Trash

Action arrow.right.doc.on.clipboard

action.move_file

Move or copy a file to a new destination. The source file path comes from the upstream payload (typically {{filePath}} from a File Changed trigger). The destination supports interpolation for dynamic paths. Intermediate directories are created automatically when enabled.

Destructive action

This node removes files. The default mode routes through the macOS Trash so deletion is recoverable; toggling permanent bypasses the Trash entirely and the file cannot be undone. Workflows containing this node prompt for confirmation on every arm.

Ports

DirectionNameData TypeDescription
InputInputAnyPayload with source file path
OutputOutputAnyPayload with move/copy result

Configuration

FieldTypeDefaultDescription
destinationTextDestination path. Supports {{var}} (e.g., {{userInput}}/{{fileName}}).
modeDropdownmoveOperation mode: Move or Copy
overwriteBooleantrueOverwrite if file already exists at destination
createDirectoriesBooleantrueCreate intermediate directories if they do not exist

Output Variables

VariableTypeDescription
sourcePathStringOriginal file path
destPathStringNew file path after move/copy
fileNameStringName of the file
fileSizeNumberFile size in bytes

Example

Sort downloads by file extension: