Erweiterte Anpassung > Business Logic Customization > Business Rules > Loading Business Rule Objects > Process > Deleting Business Rule Objects
  
Deleting Business Rule Objects
Existing business rule objects can be deleted using the command line utility DeleteBusinessRuleObjects. To delete a business rule or business rule set the arguments are
windchill wt.businessRules.DeleteBusinessRuleObjects “typeOfObjectToDelete:key:containerPath”
Argument Name
Description
Applies to
Examples
typeOfObjectToDelete
The type of object to delete
BusinessRule
BusinessRuleSet
BusinessRuleLink
BusinessRule
BusinessRuleSet
BusinessRuleLink
key
The key of the object to delete
BusinessRule
BusinessRuleSet
CHECKOUT_RULE
CHANGEABLE_PRE_RELEASE
containerPath
The container path of the object
BusinessRule
BusinessRuleSet
/wt.inf.container.OrgContainer=PTC/wt.pdmlink.PDMLinkProduct=
GOLF_CART
To delete a business rule link, the business rule set and business rule that it links need to be specified.
windchill wt.businessRules.DeleteBusinessRuleObjects "typeOfObjectToDelete:key:containerPath:key:containerPath"
The argument for the object to delete needs to be in quotes since container paths may contain spaces. If a business rule or business rule set is deleted, then any link the object was a part of is also deleted. One or more objects can be specified, separated by a space.
Examples
Deleting a business rule
windchill wt.businessRules.DeleteBusinessRuleObjects "BusinessRule:keyToDelete:/wt.inf.container.OrgContainer=Org Name/wt.pdmlink.PDMLinkProduct=Product Name"
Deleting 2 business rule sets
windchill wt.businessRules.DeleteBusinessRuleObjects "BusinessRuleSet:keyToDelete:/wt.inf.container.OrgContainer=Org Name/wt.pdmlink.PDMLinkProduct=Product Name"
"BusinessRuleSet:anotherKey:/wt.inf.container.OrgContainer=Org Name/wt.pdmlink.PDMLinkProduct=Product Name"
Deleting a business rule link
windchill wt.businessRules.DeleteBusinessRuleObjects "BusinessRuleLink:businessRuleSetKey:/wt.inf.container.OrgContainer=Org Name/wt.pdmlink.PDMLinkProduct=Product Name:businessRuleKey:/wt.inf.container.OrgContainer=Org Name/wt.pdmlink.PDMLinkProduct=Product Name"