WBEMfor Solaris on Sun Developer's Guide

Deleting Classes and Their Attributes

CIM WorkShop provides a way to delete classes, properties, methods, and qualifiers that you no longer need or use.


Note -

When you delete a class, you delete all subclasses it contains. You also delete all associated properties, methods, and qualifiers of the class and its subclasses.


Deleting a Class

Use the following procedure to delete a class from the class inheritance tree.

How to Delete a Class
  1. Select the class that you want to delete.

  2. Click Classes->Delete Class and click OK in the dialog box that asks you to confirm your decision to delete a class.

    The class is deleted.

Deleting a Property of a Class

You can delete a property only when you create a new class. Otherwise, you can view but not modify or delete properties of classes. However, when you create a new class, you can delete properties inherited from the parent class if you do not need them or want to use them. For information about how to create a class, see "Adding a Class".

How to Delete a Property of a Class
  1. In the Properties tab of the New Class dialog box, right-click a property.

  2. Click Delete Property in the pop-up menu.

    The property is deleted from the Properties tab.

Deleting Qualifiers

When you create a new class, you can delete qualifiers of properties or methods inherited from the parent class. For information about how to create a class, see "Adding a Class".

How to Delete a Qualifier of a Property
  1. In the Properties tab of the New Class dialog box, right-click the property that you want to delete.

  2. Click Qualifiers in the pop-up menu.

  3. In the Qualifiers dialog box, click Delete Qualifier, then click OK.

    The selected qualifier is deleted. The New Class dialog box is displayed.

How to Delete a Qualifier of a Method
  1. In the Methods tab of the New Class dialog box, right-click the method that you want to delete.

  2. Click Qualifiers in the pop-up menu.

  3. In the Qualifiers dialog box, click Delete Qualifier, then click OK.

    The selected qualifier is deleted. The New Class dialog box is displayed.