Delete Files
Description
Delete files is a step in the File Management Plugin that deletes files and / or folders as specified.
Note: The Delete files step must be preceded by at least one step that will generate row(s).
Configurations
No. | Field Name | Description |
---|---|---|
1 | Step name | Specify a unique name for the step. |
File / Folder tab | ||
Accept Input From Previous Step: | ||
2 | Accept Input From Previous Field | Select the checkbox if you want to accept input from previous fields. Note: If you do not select the checkbox then the following fields are unavailable: Previous Field and WildCard(RegExp). |
3 | Previous Field | Select the field from the list. |
4 | WildCard(RegExp) | Specify the regular expression matching files to delete if the previous option is a folder. |
5 | File / Folder | Click Folder to select the folder from which you want to delete the files or File to select the file you want to delete. Note: - Add: Add folder field to the list of folders. - Folder: Select a folder. - Delete: Remove the selected folders from the list. - Edit: Move the selected folder to the folder field for editing. |
6 | WildCard(RegExp) | The regular expression matching files to delete if the previous option is a folder. For example: To delete all files ending in .dat, the regular expression would be: ".*\.dat$" |
7 | Files / Folders | The complete list of files / folders to delete. |
Settings tab: | ||
8 | Include Subfolders | Select the checkbox if you want to add the subfolders available in the selected folder. |
9 | Fail If File Not Exist | Select the checkbox if you want the workflow to fail when the file to delete does not exist. |
10 | Delete For | Select the option from the list. Available options are: - First Row: File is deleted after the first row is generated. - Each Row: File is deleted after each row is generated. - Last Row: File is deleted after the last row is generated. |
Note: If you use wild card expression for files, then when you click OK you will see a warning and the wild card will be removed for the file.