The Run Tool has the capability to delete files in a directory. You can use this step to remove files once they have been processed in the project.
To delete a file in your Run Tool Project click onto the Add Step
button and select File Delete
from the list.
Enter in a name for the step and click OK.
This will then open the configuration window. Enter in the required parameters and click OK to add the step.
Setting | Description |
---|---|
Filename | The path to the file being deleted. Wildcards are supported |
You must use local or UNC paths when configuring the step. Mapped drives will cause the step to error.
The step will then be added to the bottom of your project, move this to where you need it to be, set the run condition and save the project.