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