code: private static void removeWebDriverTempOldFolders(ClientProperties properties) {
          String tempFolder = System.getProperty("java.io.tmpdir");
  
          int numberOfDaysToKeepTempFolders = properties.getNumberOfDaysToKeepTempFolders();
          if (numberOfDaysToKeepTempFolders < 0) {
              numberOfDaysToKeepTempFolders = 7;
          }
  
          List<String> tempFolderNameContainsList = new ArrayList<String>();
          tempFolderNameContainsList.add("anonymous");
          tempFolderNameContainsList.add("scoped_dir");
          tempFolderNameContainsList.add("webdriver-ie");
  
          // add parameters from config file
          String tempFolderNameContainsListFromProp = properties.getTempFolderNameContainsList();
          if (tempFolderNameContainsListFromProp != null) {
              String[] tempFolderNameContainsListFromPropSpit = tempFolderNameContainsListFromProp
                      .split(",");
              for (String name : tempFolderNameContainsListFromPropSpit) {
                  tempFolderNameContainsList.add(name);
              }
          }
  
          removeFolders(tempFolder, tempFolderNameContainsList, numberOfDaysToKeepTempFolders);
      }
docs: This method cleans out folders where the WebDriver temp information is
  stored.
  
  @param properties
  client properties specified