This Specification Flow Task will delete a file from inside the vault.
|Source File Name||File Name to delete (must be inside the vault). This must be the full path to the file i.e. C:\VaultName\VaultFolder\MyPart.SLDPRT.|
|Constant Name||Optional name of the constant that the result will be posted to for reference|
|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.
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.
|Property||Example rule||Example result||Meaning|
|Source File Name||DWVariableVaultLocation & FileToDeleteReturn||If 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 Name||DWConstantDeleteFileFromVaultResult||Successfully deleted 'C:\VaultName\VaultFolder\MyModel.SLDPRT'||DriveWorks will put the result of the Task in the constant called DeleteFileFromVaultResult.|