DeleteResDefs task

About this task

Run this task 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 DeleteResDefsTask element has an optional preview attribute. Nested ResDefNameRule elements can be included to specify which resource definitions to delete.

Example

The following code is an example of the DeleteResDefs task where all the resource definitions are deleted:
<target name="example01" description="Delete all resource definitions" >
  <ld:deleteresdefs/>
</target>
The following code is an example of the DeleteResDefs task where only the specified resource definition named delete.definition is deleted:
<target name="example02" description="Delete a resource definition" >
  <ld:deleteresdefs>
     <ld:resdefnamerule match="^delete\.definition$"/>
  </ld:deleteresdefs>
</target>