Enhance Warning Message for OCP CLI App Unpublishing to Prevent Data Loss
When unpublishing an app using the OCP CLI, the current warning message does not sufficiently convey the risk of data loss, especially when removing an active production version.
The existing prompt is: "{app}" is currently installed in {count} account(s)... Are you sure you want to uninstall from all these accounts? [y/n]
This message lacks a clear warning about the permanent loss of data. We propose enhancing this prompt with a more explicit statement, such as: "You are about to uninstall an ACTIVE published version. If you do this, you will lose your product, its stored settings, and the storage it uses."
Use Case: Development teams often manage multiple app versions (for dev, testing, production) and must frequently unpublish older versions to stay within the five-version limit for their CI/CD pipelines. This routine task carries a high risk of human error, where a developer might accidentally unpublish a live production version.
A stronger, more descriptive warning would provide a critical safeguard, preventing accidental data loss and making this common workflow safer for all developers.