Search

Tip: type a command such as theme build. Press Esc to close.

mageforge:theme:clean

Clean static files and cache directories

Since v0.5.0Themealias: frontend:clean

Run it

bin/magento mageforge:theme:clean [<theme-code> ...]
bin/magento mageforge:theme:clean --all
bin/magento mageforge:theme:clean --dry-run

Cleans theme static files and cache directories.

Arguments:

  • themeCodes — Optional. One or more theme codes to clean.

Options:

  • -a, --all — Clean all themes.
  • --dry-run — Show what would be cleaned without actually deleting anything.

Version history

  • v0.5.0 – Create theme:clean command for cleaning theme static files and cache, remove old mageforge:static:clean command (+1 more)
  • v0.3.0 – Add `mageforge:static:clean` command for comprehensive cache and generated files cleanup (+3 more)