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