Home Search

DriveWorks Pro 22
Delete Specification Document

Send Feedback

Delete Specification Document

This Specification Task will delete a given Document within the specified Specification.


Property NameDescription
Specification IdThe Id of the Specification, set to 0 (zero) to remove the references for the current Specification.
Document NameThe file name of the Document to delete.
Delete FileDelete the file if it exists on disk.

If there are two files with the same name, DriveWorks will check the file extensions to differentaite the files before deletion. Files with an incorect extension will be ignored.


When this Task is added the properties are static. To be able to build rules on a static property see How To: Change A Static Property To A Dynamic Property.

Property NameExample RuleExample ResultMeaning
Specification Id"44"44This is the Id of the Specification that will have the document removed.
Document Name"Quote "&DWSpecification&".docx"Quote 44.docxThis is the name of Document to be deleted.
This is the name of the created Document and not the name you gave the Document in Stage 4: Output Rules.
Delete FileTRUETRUETRUE will delete the Document if it exists on disk. FALSE will not delete the Document

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 (one of the following occurred)

  • Document successfully removed or deleted

Success with Warnings

  • N/A - should never be fulfilled.

Failed (one of the following occurred)

  • Document Name is empty or contains white space.
  • Document name could not be found.
  • Specification ID could not be found.
  • Specification ID is less than 0.
  • General failure - Check the Specification report for more details.