Uninstall Image Styles Config
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #2999604. --> Reported by: [dreizwo](https://www.drupal.org/user/1048466) >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>Reinstallation of content_planner causes error </p> <blockquote><p> [error] Configuration objects (image.style.content_kanban_user_thumb) provided by content_kanban already exist in active configuration </p></blockquote> <!--break--><p> <strong>Reproducer:</strong> </p> <ul> <li>Install content_planner (drush en content_planner)</li> <li>Uninstall content_planner (drush pm-uninstall content_planner) </li> <li>Install again - you'll get the error.</li> </ul> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Add *.install files to all modules/submodules and implement hook_uninstall e.g. content_kanban.install:</p> <pre>/**<br> * {@inheritdoc}<br> */<br>function content_kanban_uninstall(){<br>&nbsp; \Drupal::configFactory()-&gt;getEditable('image.style.content_kanban_user_thumb')-&gt;delete();<br>}</pre>
issue