Home Search

DriveWorks Pro 22
PDM Pro: Delete a file from vault

Send Feedback

PDMPro: Delete File

This Specification Flow Task will delete a file from inside the vault.

Note: Before deleting a file, review the PDM plugin settings, specify a path for the vault and the user that wants to delete the file. Without these specifications, the task will fail to run.


Property NameDescription
Source File PathPath of the file to delete (must be inside the vault).
Constant Name The name of the Constant into which the result should be driven.


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.

Deleting a file and reporting the state of the Task in a DriveWorks Constant.

The file to delete is called MyModel.SLDPRT and is located under C:\VaultName\VaultFolder.

The Constant used for reporting is called DeleteFileFromVaultResult.

PropertyExample ruleExample resultMeaning
Source File PathDWVariableVaultLocation & FileToDeleteReturnIf the variable VaultLocation equals "C:\VaultName\VaultFolder\" and the FileToDelete control value equals "MyModel.SLDPRT", the path would be evaluated to "C:\VaultName\VaultFolder\MyModel.SLDPRT".DriveWorks will delete the vault file "C:\VaultName\VaultFolder\MyModel.SLDPRT".
Constant NameDWConstantDeleteFileFromVaultResultSuccessfully deleted 'C:\VaultName\VaultFolder\MyModel.SLDPRT'DriveWorks will put the result of the Task in the Constant called DeleteFileFromVaultResult.

Using the Task in a Specification Macro

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

Status Outputs

This task supports Status Outputs. They 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 deleted

Success with Warnings

  • N/A - should never be fulfilled.

Failure (one of the following occurred)

  • File name is empty
  • File not in vault
  • File name invalid
  • File not deleted