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

Thank You...

3 Answers 3


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... Commented Sep 4, 2019 at 10:10

Use this below command :

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


  • {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

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

Please Follow below Magento manual for uninstalling a theme


  • thank you for answer. Commented Sep 4, 2019 at 11:51

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.