Question

Delete Class in locked ruleset

Issue:

Class AAA-BBB-CCC-DDD was created in locked Ruleset 01-01-02.

Current unlocked ruleset is Ruleset 01-02-03.

After withdrawing created rules, and refactoring the class.

The class still exists.

However, refactoring does indicate that rules in locked rulesets are not deleted.

Correct Answer
November 27, 2019 - 5:55am

In extension to the above point, the Pega help document provides the clear picture on Delete a Class wizard.

  • Checked out rules associated with the class will be deleted. Unlike other rule management wizards, the Delete a Class wizard does not identify and warn of checked out rules among those to be deleted.
  • Deleting a class might render an application inoperative. Always back up the Pega 7 Platform system before deleting a class.
  • This wizard can't delete a rule that belongs to a locked RuleSet version. Locked rules will be left in place during the deletion.
  • The wizard can't delete a class if it contains one or more rules that have failed deletion (perhaps because they belong to a locked RuleSet version.) However, all rules that can be deleted will be when you run the wizard.
  • To complete deleting the class, you must unlock or otherwise make it possible for the undeleted rules to be deleted and then run the wizard again. 

Please refer the below link for detailed information,

https://community.pega.com/sites/default/files/help_v72/tools/rulemanagement/aboutdeleteclass.htm

Hope this helps!

Thanks,

Geeda.

Comments

Keep up to date on this post and subscribe to comments

November 27, 2019 - 5:27am

Hello, 

I believe this is expected. Rules in locked ruleset will never be deleted. Can you unlock it just to refactor? What Pega version is it?

Pega
November 27, 2019 - 5:49am

Hi,

Currently deleting the class is possible in the unlocked ruleset version. You can find the similar discussions in the below links for reference,

https://community1.pega.com/community/product-support/question/can-we-delete-class-without-unlocking-rulesets-manually

https://community1.pega.com/community/pega-support/question/can-we-delete-class-without-unlocking-rulesets

Pega
November 27, 2019 - 5:55am

In extension to the above point, the Pega help document provides the clear picture on Delete a Class wizard.

  • Checked out rules associated with the class will be deleted. Unlike other rule management wizards, the Delete a Class wizard does not identify and warn of checked out rules among those to be deleted.
  • Deleting a class might render an application inoperative. Always back up the Pega 7 Platform system before deleting a class.
  • This wizard can't delete a rule that belongs to a locked RuleSet version. Locked rules will be left in place during the deletion.
  • The wizard can't delete a class if it contains one or more rules that have failed deletion (perhaps because they belong to a locked RuleSet version.) However, all rules that can be deleted will be when you run the wizard.
  • To complete deleting the class, you must unlock or otherwise make it possible for the undeleted rules to be deleted and then run the wizard again. 

Please refer the below link for detailed information,

https://community.pega.com/sites/default/files/help_v72/tools/rulemanagement/aboutdeleteclass.htm

Hope this helps!

Thanks,

Geeda.