dev:asset:clear
Clear static view files
info
This command removes all static view files generated by Magento. Use it to force regeneration of static assets after code or theme changes.
n98-magerun2.phar dev:asset:clear [--theme="..."]
Options:
Option | Description |
---|---|
-t, --theme=THEME | Clear assets for specific theme(s) only (multiple values allowed). |
To clear assets for all themes:
n98-magerun2.phar dev:asset:clear
To clear assets for specific theme(s) only:
n98-magerun2.phar dev:asset:clear --theme=Magento/luma