# Old theme setting is not removed

**URL:** https://forum.shopware.com/t/old-theme-setting-is-not-removed/95775
**Category:** Themes & Design (EN)
**Created:** [15. August 2022 um 08:02 UTC](https://forum.shopware.com/t/old-theme-setting-is-not-removed/95775 "2022-08-15T08:02:11Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![magnus](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/magnus/32/13222_2.png) [@magnus](https://forum.shopware.com/u/magnus)
#### Post date: [15. August 2022 um 08:02 UTC](https://forum.shopware.com/t/old-theme-setting-is-not-removed/95775/1 "2022-08-15T08:02:11Z")

</div>

In my custom theme (theme.json) I added a few new settings. Like this one:

```auto
"alice-h1-font-size": {
   "label": {
      "en-GB": "Product name font size (24-96)",
      "de-DE": "Productname schiftgröse (24-96)"
      },
      "type": "number",
      "custom": {
      "numberType": "int",
      "min": 24,
      "max": 96
       },
      "value": "48",
      "editable": true,
      "block": "aliceThemeTypography"
  }

```

Then I decided to change the key to „alice-product-name-font-size“. This creates a new settings - but the old „alice-h1-font-size“ is still present in the theme settings - under an unnamed section.

So, how do I get rid of the old version? I have run theme:refresh, cache:clear and theme:compile several times…

Magnus

 ![Screenshot 2022-08-12 at 10.13.41](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/a/d/ad461b3ac07b420ef8ec7dbf6c7d5bd9cb527542.png)

---

<div class="post-metadata">

### Author: ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)
#### Post date: [17. August 2022 um 21:28 UTC](https://forum.shopware.com/t/old-theme-setting-is-not-removed/95775/2 "2022-08-17T21:28:16Z")

</div>

The configuration is stored in the database. Shopware overrides existing entries, old are ignored. So you have to delete them manually in the database or build a section and group all old unused vars.

---

<div class="post-metadata">

### Author: ![magnus](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/magnus/32/13222_2.png) [@magnus](https://forum.shopware.com/u/magnus)
#### Post date: [18. August 2022 um 06:03 UTC](https://forum.shopware.com/t/old-theme-setting-is-not-removed/95775/3 "2022-08-18T06:03:10Z")

</div>

Thanks Max\_Shop  
I created an „other“ section. Then I delete all of them when the theme is finished.

// Magnus
