2

How to uninstall or remove a theme using the command line In Magento 2.

Thank You...

3 Answers 3

2

You can use this command

magento theme:uninstall

You can also define a theme path like below, you can add --backup-code to take backup

magento theme:uninstall frontend/Magento/blank --backup-code

You can Remove themes from the theme database table.

Hope it Helps.

1
  • Working for me Thank You for the answer... Sep 4, 2019 at 10:10
1

Use this below command :

magento theme:uninstall [--backup-code] [-c|--clear-static-content] {theme path} ... {theme path}

where

  • {theme path} is the relative path to the theme, starting with the area name. For example, the path to the Blank theme supplied with Magento 2 is frontend/Magento/blank.
  • --backup-code backs up the Magento 2 codebase as discussed in the paragraphs that follow.
  • --clear-static-content cleans generated static view files, which is necessary to cause static view files to display properly.

For more referece : click here

1
  • Thank you for the answer... Sep 4, 2019 at 10:10
1

Please Follow below Magento manual for uninstalling a theme

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

1

Your Answer

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

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