protected function execute(InputInterface $input, OutputInterface $output) { if ($this->isInstalled() === false) { throw new RuntimeException('Invalid Kirby installation'); } // get the thumbs folder and bootstrap kirby $thumbs = $this->kirby()->roots()->thumbs(); // flush the thumbs folder dir::clean($thumbs); $output->writeln('<comment>The thumbs folder has been emptied</comment>'); $output->writeln(''); }