0

I clone my theme to set child theme. I deleted child theme folders in app/design/frontend/ and app/code//ThemeOptions/fixtures but in admin backend it's not removed. I flush cache , Please let me know how to remove my custom child theme.

2
  • Delete entry from theme table.
    – anonymous
    Commented Oct 2, 2019 at 9:19
  • i tried it shows error "Theme isn't deletable."
    – Priya
    Commented Oct 2, 2019 at 9:21

2 Answers 2

0

You can try this :

mysql -u <user> -p -e "delete from <dbname>.theme where theme_path ='<Vendor>/<theme>' AND area ='frontend' limit 1"

Reference from : https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/themes/theme-uninstall.html

2
  • can i delete using SSH.?
    – Priya
    Commented Oct 2, 2019 at 9:22
  • Yes , you can read the reference as well , check manual deletion step and follow . Commented Oct 2, 2019 at 9:25
0

1. login via SSH and execute:

php bin/magento theme:uninstall frontend/your/theme && php bin/magento cache:flush

2. open the database and open the table "theme" and delete the theme entry.

3. execute the following SQL query:

SELECT * FROM `core_config_data` WHERE path LIKE "%theme_id%"

And set the value to "1" to reset to "Magento Base" Theme.

Now you should be able to change your theme in the backend in "Content -> Design -> Configuration"

4. Flush cache again

php bin/magento cache:flush

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.