code: public static void cleanup(File directory) throws IOException {
          log.info("Cleaning SVN Working copy at " + directory);
  
          CommandLine cmdLine = new CommandLine(SVN_CMD);
          cmdLine.addArgument("cleanup");
          addDefaultArguments(cmdLine, null, null);
  
          try (InputStream result = ExecutionHelper.getCommandResult(cmdLine, directory, 0, 360000)) {
              log.info("Svn-Cleanup reported:\n" + extractResult(result));
          }
      }
docs: Run "svn cleanup" on the given working copy.
  
  @param directory The local working directory
  @throws IOException Execution of the SVN sub-process failed or the
  sub-process returned a exit value indicating a failure