Skip to main content

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 NameDescription
1Step nameSpecify a unique name for the step.
File / Folder tab
Accept Input From Previous Step:
2Accept Input From Previous FieldSelect 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).
3Previous FieldSelect the field from the list.
4WildCard(RegExp)Specify the regular expression matching files to delete if the previous option is a folder.
5File / FolderClick 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.

6WildCard(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$"
7Files / FoldersThe complete list of files / folders to delete.
Settings tab:
8Include SubfoldersSelect the checkbox if you want to add the subfolders available in the selected folder.
9Fail If File Not ExistSelect the checkbox if you want the workflow to fail when the file to delete does not exist.
10Delete ForSelect 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.