Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
After generating a feature, a site admin may wish to delete it.
Proposed resolution
Add a new "Delete" generation plugin.
Since this is an exceptionally destructive action, so extend the generation plugin system to allow a confirmation step.
Remaining tasks
User interface changes
Adds a "Delete" button on the admin/config/development/features page.
API changes
Data model changes
Any thoughts?
Comments
Comment #2
nedjoHmm. On the one hand, we provide a way to generate the modules, so providing a parallel way of deleting them would seem to make sense. On the other hand, deleting a module could easily
Comment #3
nedjo... lose important data. Updated the issue summary with a possible approach.
Comment #4
emudojo CreditAttribution: emudojo commentedI'll add to this, deleting a feature through the UI ensures that the user that created it (apache/nginx) can delete it, sometimes users won't be able to deploy or switch branches as apache will now own the feature folder