FTP Jobs: Delete Command Settings
The Delete command deletes one or more files or directories.
To Delete One or More Files or Directories
-
In From/To select the Connection objects that connect to the source and destination hosts.
-
Drag the Delete command from the left pane and drop it onto the editor in the middle.
-
In Path do the following:
-
Select a Connection object. This list displays the connection objects that you have selected at the top of the editor for the source and target hosts. .
You can browse to a file or directory using the browse icon. When you click it, a pop-up dialog opens that allows you to browse to a file or directory on the host. For more information, see Browsing to Directories and Files.
-
In Path, specify the absolute or relative path to change to. You can use * (any number of characters) and ? ()one character) wildcards here.
Examples:
-
*.txt copies all files with a .txt extension.
-
report.* copies all files called report with any extension.
-
quarter? copies all files called quarter followed by a single character.
-
???? copies all files that are exactly four characters long.
Note:If you use wildcards and no files match the selection, the Delete command does not abort.
-
-
-
In the Options section, do the following:
-
If you do not want the Job to abort if this command fails, deselect Abort job on command failure.
-
If you want to delete children directories and their files when they meet the wildcard criteria in the Path field, select Delete files recursively.
-
If you select Delete files recursively, you can optionally chose to delete empty directories with the Delete empty directories option.
-
-
Optionally add a description of the command under Description. The text you enter here is not written to the Job report. To write a message to the Job report, use an Echo command. For more information, see FTP Jobs: Echo Command Settings.
See also: