The task is used to delete obsolete or unneeded resource definitions. The default behavior of this task is to delete all resource definitions unless at least one ResDefNameRule is specified as a nested element.
The following table describes the task specific attributes for the task:
| Task Specific Attributes | ||
| Attribute | Description | Required |
| preview |
If this attribute is set to true, the resources that match the criteria are displayed, but not deleted. When this attribute is set to false the resources that match the criteria are deleted. Valid values are true and false. The default is false.
|
No |
The ResDefNameRule element is specified within the element. The ResDefNameRule element is an optional element used to limit the scope of the system definitions to be deleted. Multiple ResDefNameRule elements may be specified. The following table describes the valid ResDefNameRule element attributes:
| ResDefNameRule Element Attributes | ||
| Attribute | Description | Required |
| match | Specifies a regular expression which is compared to the resource name, and if the pattern matches the name, the resource is deleted. | Yes |
The generic nameRule element is equivalent to the ResDefNameRule element and may be used in its place.
<target name="delete" description="Delete definitions">
<xt:deleteResDefs>
<xt:resDefNameRule match="^delete\.definition$"/>
</xt:deleteResDefs>
</target>