setDescription('Remove past events'); $this->setHelp('Past dates are removed, together with events that do not have any left dates.'); } protected function execute(InputInterface $input, OutputInterface $output) { Bootstrap::initializeBackendAuthentication(); return GeneralUtility::makeInstance(ObjectManager::class) ->get(CleanupService::class) ->deletePastData(); } }