Currently, IPM provides a -r flag for recursive uninstalls. However, this relies entirely on the user remembering to include it every time. If a user forgets the flag, dependency modules remain in the namespace as "orphans." Over time, this results in "orphaned modules".
Proposed Solution
Introduce a new system-wide configuration setting: AutoUninstallDependency (Boolean, defaulting to 0).
- When
0 (Default): The current behavior is preserved. Modules are only uninstalled recursively if the -r flag is provided.
- When
1 (Enabled): The uninstall command becomes "smart." It will automatically attempt to clean up dependencies of the target module without requiring the -r flag.
Currently, IPM provides a
-rflag for recursive uninstalls. However, this relies entirely on the user remembering to include it every time. If a user forgets the flag, dependency modules remain in the namespace as "orphans." Over time, this results in "orphaned modules".Proposed Solution
Introduce a new system-wide configuration setting:
AutoUninstallDependency(Boolean, defaulting to0).0(Default): The current behavior is preserved. Modules are only uninstalled recursively if the-rflag is provided.1(Enabled): Theuninstallcommand becomes "smart." It will automatically attempt to clean up dependencies of the target module without requiring the-rflag.