Delete a class

When a class is no longer needed, the best practice is to remove it from the project. Review your entire project once you delete a class to ensure that there are no unused global settings such as formatters or validation methods specific to that class. Removing unused elements ensures that your project is as efficient as possible and takes up less disk space.

Important When you delete a class, you also delete all of its contents, including child classes, locators, fields, validation rules, structure rules, instructions, validation forms, and associated scripts.

You can remove a class from the Project Tree by following these steps:

  1. Open the Project Tree window if it is not already open.
  2. Expand the project and select the class to delete.
  3. On the Design tab, in the Edit group, click Delete.
  4. When prompted, click OK to confirm the deletion.