KB Article #193240
How to uninstall Automator agent on IBMi (AS400)
Problem
Unlike Windows and Linux platforms where an uninstall program is available, IBMi installations do not provide an automated uninstallation mechanism.
This can lead to uncertainty on how to properly remove all Automator components and may result in incomplete cleanup or orphan objects.
Resolution
On IBMi, the Automator agent must be uninstalled manually by removing all components created during installation.
1. Identify installed components
The installation creates the following elements:
-
Library:
OPSCHEDULE -
IFS directory:
/packcenter/OPSCHEDULE -
User profiles:
-
OPSCHEDULE -
OPUSRQSH(orOPQSH37depending on version)
-
-
Message Queue:
OPSCHEDULEinQUSRSYS
2. Backup (recommended)
Before proceeding, perform a backup of the environment:
SAVLIB LIB(OPSCHEDULE)
SAV DEV(...) OBJ('/packcenter/OPSCHEDULE')(User profiles are included in SAVSYS or SAVSECDTA)
3. Remove components
Execute the following commands:
- Delete the library:
DLTLIB LIB(OPSCHEDULE)
- Delete the IFS directory:
RMVLNK OBJ('/packcenter/OPSCHEDULE')- Delete user profiles:
DLTUSRPRF USRPRF(OPSCHEDULE) DLTUSRPRF USRPRF(OPUSRQSH)
⚠️ When deleting user profiles, use appropriate parameters (e.g. OWNOBJOPT) to handle remaining owned objects.
- Delete the message queue:
DLTMSGQ MSGQ(QUSRSYS/OPSCHEDULE)
4. Additional recommendations
- Ensure all Automator services are stopped before removal
- Verify no custom scripts are required before deleting the IFS directory
- Perform the operation during a maintenance window