Home Search

DriveWorks Pro 22
Remove Component References By File Name And Delete Files

Send Feedback

Remove Component References By File Name And Delete Files

This Specification Macro Task will remove the referenced components based on a target file name. It will also delete the target reference.


Property NameDescription
TitleChanges the Title (not the name) of the task.
File NameFull file path (including extension) of the target referenced file location.


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
File PathDWSpecificationDefaultFolder&"\SpecificationPowerPack "&SpecIDReturnC:\MyDocuments\Projects\Specifications\Bracket 33This is the Full File Path of the Specification to remove reference components from.

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:


  • Component references were removed and file was deleted.

Success with Warnings

  • Model was not deleted but references were removed.

Failed (one of the following occurred)

  • The file path is blank.
  • The provided file path does not exist.
  • Could not access file path due to permissions.