Remove config on uninstall

Created on 10 June 2024, 6 months ago
Updated 24 June 2024, 6 months ago

Problem/Motivation

When uninstalling the module, the config remains.

drush cget node.type.article
 
uuid: a8648620-26f9-4dbd-a7a7-520f2cba0e67
langcode: en
status: true
dependencies:
  module:
    - menu_ui
third_party_settings:
  menu_ui:
    available_menus:
      - main
    parent: 'main:'
_core:
  default_config_hash: AeW1SEDgb1OTQACAWGhzvMknMYAJlcZu0jljfeU3oso
name: Article
type: article
description: 'Use  for time-sensitive content like news, press releases or blog posts.'
help: ''
new_revision: true
preview_mode: 1
display_submitted: true
<strong>use_copy_field: 1</strong>

Steps to reproduce

- Install the module
- Configure content type and enable copy field feature
- Uninstall the module
- Check the config and notice they are still present

Proposed resolution

Implement a hook_uninstall to delete the config

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India sanket.addweb

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024