ILOG JRules User Guide > Deploying Rules > Reference > RuleApp Management Using Ant > res-delete-file Task

The res-delete-file task removes a RuleApp archive from the file persistence of Rule Execution Server. This task does not notify any other Rule Execution Server component.

Table 13 res-delete-file Element Attributes
Element Attribute 
Description 
Required 
ruleapp 
The RuleApp archive name to remove. 
Yes 
dir 
The path of the root directory of the file persistence. 
Yes 
version 
The RuleApp archive version to remove. 
No.Default value is1.0 
failonerror 
The default is set to true. If it is set to false, a warning message is logged when an error occurs, but the build is not stopped.  
No 

The following Ant task code provides an example how to use the element attributes:

<res-delete-file dir="res_data" ruleapp="myruleapp" version="1.0"/>

Related Concepts

RuleApps and RuleApp Projects

Related Topics

Task Mappings
Rule Execution Server Tasks
res-jar Task
res-fetch Task
res-fetch-all Task
res-deploy
res-undeploy Task
res-write-file Task
res-write-db Task
res-delete-db Task

Related Tasks

Deploying and Exporting RuleApps

Related Samples and Tutorials

Tutorial: RuleApp Management
How to Automate Ruleset Management
How to Migrate RuleApps

Related Reference

RuleApp Management Using MBeans Accessor API
http://ant.apache.org/