When a package is being removed, the pkgrm command performs these steps:
Removes the package objects, for each class.
Removal
also occurs class by class. Removal scripts are processed in the reverse order
of installation, based on the sequence defined in the CLASSES
parameter. For more information on how classes are processed
during installation, see How Classes Are Processed During Installation.
Removes hard links.
Removes regular files.
Removes symbolic links, devices, and named pipes.
The request script is not processed at the time of package removal. However, its output (a list of environment variables) is retained in the installed package and made available to removal scripts.