Home Search

DriveWorks Pro 22
Delete File

Send Feedback

Delete File

The Delete File task will delete the file specified in the Path property.

If you wish to delete a file from PDM please refer to PDMPro: Delete File.


Property NameDescription
PathThe path to the file to delete.
TitleChanges 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 NameExample ruleExample resultMeaning
Path"C:\MyFiles\" & DWVariableFileToDeleteC:\MyFiles\SOLIDWORKS Model.SLDPRTThis task will delete the file SOLIDWORKS Model.SLDPRT from the MyFiles folder. The file to delete has been defined by the variable FileToDelete.

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:


  • File was deleted.

Success with Warnings

  • N/A - should never get fulfilled.

Failed (one of the following occurred)

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