Removing a User-Defined Schema

The Remove command from the Schema menu enables you to remove (delete) a user-defined schema from the Schema Browser.

You can remove user-defined schemas only. You cannot remove a user-defined schema that has one or more subschemas or a system schema. (The Remove command is disabled if the schema selected in the Schema Browser has subschemas or it is a system schema.) As you cannot remove a schema that has subschemas, you must first remove any subschemas of that schema before you can delete the higher-level schema.

For details about removing elements from a user-defined schema (for example, classes, methods, or properties), see "Removing a Schema Element", later in this chapter.

To remove a schema that has no subschemas

  1. In the Schema Browser, select the schema that you want to remove.

  2. Select the Remove command from the Schema menu.

    The Confirm Delete message box is then displayed.

  3. To confirm that you want to remove the schema and all of its class instances, click the OK button. Alternatively, click the Cancel button to abandon the deletion.

The Schema Browser is then updated to reflect the removal of the schema. (There may be a momentary delay while this updating occurs.)

If classes in the schema have destructors that delete dependent objects, errors may be raised if the schema deletion has already deleted those objects.

For details about deleting a user-defined schema from a deployment database using the optional deleteSchema parameter, see the JADE Schema Load User's Guide.