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

smustgrave created an issue. See original summary.

nedjo’s picture

Issue summary: View changes

Hmm. 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

nedjo’s picture

... lose important data. Updated the issue summary with a possible approach.

emudojo’s picture

I'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