A quick and easy way to clear all generate files in Magento 2 command line


rm var/cache/* var/generation/* var/view_preprocessed/* var/page_cache/*  pub/static/frontend/* pub/static/adminhtml/* -R