code: @Scheduled(cron = "${deployer.main.targets.cleanup.cron}")
      public void cleanupAllTargets() {
          try {
              logger.info("Starting cleanup for all targets");
              targetService.getAllTargets().forEach(Target::cleanup);
          } catch (TargetServiceException e) {
              logger.error("Error getting loaded targets", e);
          }
      }
docs: Performs a cleanup on all loaded targets.