2

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

Thank You...

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.

  • Working for me Thank You for the answer... – Vishal Baraiya Sep 4 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

Please Follow below Magento manual for uninstalling a theme

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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