The Delete File task will delete the file specified in the Path property.
Property Name | Description |
---|---|
Path | The path to the file to delete. |
Title | Changes the Title (not the name) of the task. |
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 Name | Example rule | Example result | Meaning |
---|---|---|---|
Path | "C:\MyFiles\" & DWVariableFileToDelete | C:\MyFiles\SOLIDWORKS Model.SLDPRT | This task will delete the file SOLIDWORKS Model.SLDPRT from the MyFiles folder. The file to delete has been defined by the variable FileToDelete. |
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.
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
Success with Warnings
Failed (one of the following occurred)