Skip to main content

Delete Folders

Description

Delete Folders removes one or more folders along with all their contents from the file system. Use this step when your workflow needs to clean up entire directory structures — for example, removing temporary working directories after processing completes or clearing output folders before a new run. The step can accept folder paths from a previous step's fields or from a static list, and you can control whether the workflow fails if a folder cannot be deleted.

Note: The Delete files step must be preceded by at least one step that will generate row(s).

Configurations

Field NameDescription
Step nameSpecify a unique name for the step.
Folder tab
Accept Input From Previous Step:
Accept Input From Previous FieldSelect the checkbox if you want to accept input from previous fields.
Previous FieldSelect the field from the list.
FolderClick Folder to select the folder from which 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.

Settings tab:
Fail If Folder Not DeletedSelect the checkbox if you want the workflow to fail when the folder does not get deleted.
Delete 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.