RemoteDelete [-r] <name or filename pattern> [, <directory pattern>]
Delete a file on the remote file system (in the current directory).
Name can either be a filename or a filename/foldername pattern
If the -r option is given, files which match the filename in directories below the current directory will also be deleted (an optional directory pattern can be supplied to filter folders from the directory tree).
Additionally RemoteDelete supports the -o, -y and -d parameters to select files based on date/time as described with the GetSync command.
Siehe auch: LocalDelete.
Examples:
RemoteDelete "previous.bak"
RemoteDelete "a*.tmp"
RemoteDelete -r "*.tmp" (delete all temp. file in all subfolders)
RemoteDelete -o24 "*.tmp" (delete all files older than 24 hours)
← Back to Script Commands