drush
drush copied to clipboard
Module uninstallations should provide an overview of configurations that will be deleted/removed just like the UI currently does
Is your feature request related to a problem? Please describe. When uninstalling a module, it can inadvertently delete a bunch of configs without the user knowing. Deleting the same module on the UI will show the following summary like this:
Somewhat related to #5718
This is even more important in Drupal 10.1 when a module uninstallation can cause the outright deletion of user roles and you lose reference to which users were assigned to which role unless you have a previous backup.
Describe the solution you'd like We can introduce a validation hook or similar which provides the summary of config changes (especially deletions) before the user confirms the uninstallation.
Describe alternatives you've considered N/A
Additional context N/A
PR welcome