These steps occur during the removal phase.
1. The emgr command initializes all remove utilities and changes the interim fix state to REMOVING.
2. Package unlocking occurs. All packages that are locked by the interim fix file being removed are unlocked. Because it is possible that a single package may be locked by multiple interim fixes, the emgr command only unlocks a package if this interim fix file is the last (or the only) interim fix file still holding a lock on the given package.
3. If a pre_remove script is specified, it is run. If the pre_remove script returns a failure, the emgr command halts the remove operation.
4. emgr checks that the interim fix being removed is not a prerequisite for another installed interim fix.
5. The interim fix is removed. If the interim fix was installed with a standard installation operation, the emgr command replaces the current interim fix files with the previously saved files. If the installation was a mount installation operation, the emgr command unmounts the interim fix files and removes them from the system.
6. If a post_remove script is specified, it is run. If the post_remove script returns a failure, the emgr command halts the installation.
7. Reboot processing occurs. If the interim fix package specified that a reboot is required, the emgr command issues a message to the user and make any necessary changes to the boot image. The emgr command does not reboot the system automatically.
Note:- Any failure in the removal phase causes the interim fix state to change to BROKEN.