Home Search

DriveWorks Pro 21
Delete Folder

Send Feedback

Delete Folder

The Delete Folder task will delete the foler specified in the Path property.

Properties

Property NameDescription
PathThe path to the folder to delete.
RecursiveTRUE to delete recursively, FALSE to only delete the directory if it is empty.
TitleChanges the Title (not the name) of the task.

Example

When this task is added the properties are static by default.
See How To: Change A Static Property To A Dynamic Property to enable rules to be built on these properties.

Property NameExample ruleExample resultMeaning
Path"C:\MyFiles\My SOLIDWORKS Models"C:\MyFiles\My SOLIDWORKS ModelsThis will delete the entire folder called "My SOLIDWORKS Models"
RecursiveTRUETRUEWith recursive set to TRUE the task will go through and delete all of the sub folders and files within the specified folder. With it set to FALSE it will only delete the folder if it is empty.

Using the Task in a Specification Macro

This task has different types of Outputs. For more information about Outputs see Specification Macros Task Node.

Outputs are only available within Specification Macros. Currently Outputs are not available for Specification Flow.

Status Outputs

This task supports Status Outputs. These can be used to perform different actions depending on what the status outcome of the task is. For more information see Status Outputs in the Task Node Outputs section of Specification Macros Task Node.

The status output navigation is as follows:

Success

  • Folder was deleted.

Success with Warnings

  • N/A - should never get fulfilled.

Failed (one of the following occurred)

  • No folder was specified.
  • Folder path was too long.
  • Folder path was invalid.
  • Folder doesn't exist.
  • Insufficient permissions to delete folder.
  • General failure - Check the Specification report for more details.