You are here: Reference > Tools, accelerators, and wizards > About the Delete a Class wizard

About the Delete a Class wizard

You can use the Delete a Class wizard to remove a class, all of its pattern- inheritance dependent classes and associated objects such as properties, activities, instances (including work items, attachments and assignments).

You can only delete classes that meet the following restrictions:

  1. The class is not in the basic Pega- RuleSets that define the Pega Platform.
  2. The class is in a RuleSet listed in your RuleSet list.

Starting the wizard

Select Designer Studio> System >Refactor > Classes > Delete a Class to start the wizard.

You can return to a previous step using the <<Back button. No rules are altered by the wizard until you click Next>> in step 2. For instructions on the forms, see:

Resuming the wizard

This tool creates a work item with prefix pxW-. To find open wizard work items, select the menu option Designer Studio > Application > Tools > All Wizards.

Notes

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 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 and listed on the summary of undeleted rules on page 3 of the wizard, Search for References.

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.

Errors are written to a log. To examine the log, use the Application Explorer to view instances of the Log-Delete-Class.

Classes related to deleted classes by directed inheritance are not deleted. If the specified class is a subclass of Work-, all instances are deleted prior to the deletion of the class.

Tools — System