setName('settings:reset') ->setDescription('Removes all settings in database'); } protected function execute(InputInterface $input, OutputInterface $output): int { $io = new SymfonyStyle($input, $output); if (!$io->confirm('Are you sure you want to reset all settings in database?', false)) { return Command::FAILURE; } SettingsModel::truncate(); $settings = Settings::getInstance(); $settings->clearCache(); $io->success('Setting cleared successfully'); return Command::SUCCESS; } }