Deleting Rule Set Using the Delete Loader in a CCD Package
You can delete the rule set objects using the delete loader in a CCD (Code and Configuration Deployment) package.
In the loader file, pass the key and the container of the rule set, the rule, or rule set link of the object. The loader will pass the loader file to the CCD package. The loader can be used in a load file set.
When you delete a rule set or a rule, the link associated to with object is also deleted.
To delete a rule that is used in the multiple rule sets, provide the link information of the rule.
For example, there are three rule sets with rules as shown below:
Rule Sets
Rules
RuleSet1
R1, R2, R3
RuleSet2
R1, U1, U2
RuleSet3
D1, D2, R3
You can observe that R1 and R3 are common rules among three rule sets. If you want to delete rule R1 of the rule set RuleSet1, you need to provide a link information of the rule.
* 
The CRUD operation order is Create, Read, Update, and Delete. In the loader the order is different. In CCD, loading is done using the loader and then the BAC package is processed. The loader executes the “Delete” action before “Create” and “Update”.
In the CCD tool, configure the loader file to execute automatically. The BACBusinessRulesDeleteLoader.xml is placed in the folder structure.
The following is a sample of business rule delete loader file for deleting a rule:
<?xml version="1.0"?>
<!DOCTYPE NmLoader SYSTEM "standard12_1.dtd">
<NmLoader>
<!-- Sample business rule delete loader file -->
<csvDeleteBusinessRuleSet handler="wt.businessRules.DeleteBusinessRuleObjects.deleteBusinessRuleSet">
<csvrulesetkey>BAC_PRODUCT_RULE_SET</csvrulesetkey>
<csvobjectcontainerpath>/wt.inf.container.ExchangeContainer=Site</csvobjectcontainerpath>
</csvDeleteBusinessRuleSet>
<csvDeleteBusinessRule handler="wt.businessRules.DeleteBusinessRuleObjects.deleteBusinessRule">
<csvrulekey>BAC_PRODUCT_RULE</csvrulekey>
<csvobjectcontainerpath>/wt.inf.container.ExchangeContainer=Site</csvobjectcontainerpath>
</csvDeleteBusinessRule>
<csvDeleteBusinessRuleLink handler="wt.businessRules.DeleteBusinessRuleObjects.deleteBusinessRuleLink">
<csvrulesetkey>BAC_PRODUCT_RULE_SET</csvrulesetkey>
<csvrulekey>BAC_PRODUCT_RULE</csvrulekey>
<csvobjectcontainerpath>/wt.inf.container.ExchangeContainer=Site</csvobjectcontainerpath>
</csvDeleteBusinessRuleLink>
</NmLoader>
<!--Container Path
Site - /wt.inf.container.ExchangeContainer=Site
Org - /wt.inf.container.OrgContainer=Demo Organization
Product - /wt.inf.container.OrgContainer=Demo Organization/wt.pdmlink.PDMLinkProduct= ChgTestProduct
Library - /wt.inf.container.OrgContainer=Demo Organization/wt.inf.library.WTLibrary= ChgTestLibrary
Project - /wt.inf.container.OrgContainer=Demo Organization/wt.projmgmt.admin.Project2=ChgTestProject

-->
Related Topics
Was this helpful?