Which of the following command you can use to clear the directories?

  • rm -rf /var/data/* /var/generation/*
  • rm -rf <your Magento install dir>/var/di/* <your Magento install dir>/var/generation/*
  • rm +rf /var/di/* /var/generation/*
  • rm -rf -> /var/di/* /var/generation/*

devdocs.magento.com/guides/v2.0/howdoi/php/php_clear-dirs.html#howdoi-clear-how