The Remove Folder action is used to delete a folder and all of its contents.
From the Task Builder Available Actions pane, open the File folder and double-click the Remove Folder action or drag it into the Steps pane. The following dialog appears:
In the Folder box, enter the path and folder name for the folder you want to remove. Alternately you can click the Open Folder button , navigate to the folder, and click OK.
If you want to send the folder to the recycle bin rather than deleting it permanently, select Place in Recycle Bin.
populate a dataset with the result, enter a name for the dataset in the
Create and populate dataset with result
information box. (Dataset names must be alphanumeric, begin with
a letter, and contain no spaces.)
The dataset fields will be Source, Destination, Result, and Message. The Result field returns 0 for success or a Windows error code for failure. The Message field provides textual information about the result.
To set the Description tab properties, refer to Description Tab Options.
To set the Error Causes and On Error tab properties, refer to Step Error Handling.
When finished, click OK to save settings and close the properties dialog window.
Adding Task Steps
Remove Folder Action