confirmToProceed('Are you sure?')) { return; } $demoThemePath = themes_path().'/demo'; if (File::exists($demoThemePath)) { Artisan::call('plugin:remove', ['name' => 'October.Demo', '--force' => true]); File::deleteDirectory($demoThemePath); $this->info('Demo has been removed! Enjoy a fresh start.'); } else { $this->error('Demo theme is already removed.'); } } /** * Get the console command options. */ protected function getOptions() { return [ ['force', null, InputOption::VALUE_NONE, 'Force the operation to run.'], ]; } }