Deletes assets from a Rational Asset Manager repository
| Attribute | Description | Required |
| server | The ID of the server that connects to Rational Asset Manager | Yes |
| failOnError | If false, the build will continue execution when an error occurs. Otherwise, the build will fail. | No. Default is true. |
| clearCache | If true, cached assets will be cleared before this task is executed. | No. Default is false. |
You can specify individual assets to be deleted.
A search can be specified and all assets returned from that query will be deleted.
Delete a single asset
<deleteAsset server="ramServer"> <asset guid="0000-1111-2222-3333" version="1.0" /> </deleteAsset>
Delete an asset that was specified in the script
<asset id="myAsset" server="ramServer" guid="0000-1111-2222-3333" version="1.0" /> <deleteAsset server="ramServer"> <asset refid="myAsset" /> </deleteAsset>
Delete all assets that match the query "myAsset"
<deleteAsset server="ramServer"> <search query="myAsset" /> </deleteAsset>