setName('organization-folders:delete') ->setDescription('Delete an organization folder') ->addArgument('id', InputArgument::REQUIRED, 'Id of the organization folder to remove'); } protected function execute(InputInterface $input, OutputInterface $output): int { $id = (int)$input->getArgument('id'); try { $this->organizationFolderService->remove($id); $output->writeln("done"); return 0; } catch (Exception $e) { $output->writeln("Exception \"{$e->getMessage()}\" at {$e->getFile()} line {$e->getLine()}"); return 1; } } }