Objects are removed class by class. Classes that exist for a package
but that are not listed in the
parameter are removed first (for example, an object installed with the installf command). Classes listed in the
CLASSES parameter are removed in reverse order. The none class is always removed last. The following list describes
the system actions that occur when a class is removed:
The pkgrm command creates a path name list.
The pkgrm command creates a list of installed path names that belong to the indicated class. Path names referenced by another package are excluded from the list unless their file type is e (meaning the file should be edited upon installation or removal).
If the package being removed modified any files of type e during installation, it should remove just the lines it added. Do not delete a non-empty editable file; just remove the lines the package added.
If there is no class action script, the path names are deleted.
If your package has no removal class action script for the class, all the path names in the list generated by the pkgrm command are deleted.
Files with a file type of e (editable), which are not assigned to a class and an associated class action script, will be removed at this point, even if the path name is shared with other packages.
If there is a class action script, the script is executed.
The pkgrm command invokes the class action script with standard input for the script containing the list generated in item 1.
The pkgrm command performs an audit.
After successfully executing the class action script, the pkgrm command removes knowledge of the path names from the package database unless a path name is referenced by another package.