Remove Folder Action—Setting Properties

The Remove Folder action is used to delete a folder and all of its contents.

To set Remove Folder properties

  1. 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:

  1. 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.

  2. If you want to send the folder to the recycle bin rather than deleting it permanently, select Place in Recycle Bin.

  3. To 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.

  4. To set the Description tab properties, refer to Description Tab Options.

  5. To set the Error Causes and On Error tab properties, refer to Step Error Handling.

  6. When finished, click OK to save settings and close the properties dialog window.

See Also

About Actions

Adding Task Steps

Remove Folder Action