How best to remove a field in content type Page2 and update the feature. It seems complex, but works - this is the 'novice' version I used but feedback welcome.
Create in Page2 content type a field | long text - "Quotes" "field_quotes"
In Features - Create a bundle 'bunone' in Configure Bundles and then select this bundle and Page2 under Features: "Write" and then on modules page Install the module.
Removal of the field "Quotes" - workflow:
Identify the elements:
In Page2 delete the field "Quotes"
Identify the "missing" elements in Features on the Page2 feature (State = Changed and Missing). Look under 'Included configuration' Description column dropdown and note the 'Missing' fields:
field.field.node.page2.field_quotes
field.storage.node.field_quotes
In page2 module folder delete respective yml files: site root | modules | custom | page2 | config | install
field.field.node.page2.field_quotes.yml
field.storage.node.field_quotes.yml
Refresh Features page
Page2 now State is now simply 'Changed'
Select and Write to update the feature
The field is removed from both the database and the feature.
Comments
Comment #2
nedjoThanks for sharing these notes.