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