Skip to content

Implement AutoUninstallDependency Configuration for Recursive Uninstalls #1098

@AshokThangavel

Description

@AshokThangavel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions