code: private void cleanUp() {
          try {
              File file = new File(System.getProperty("user.dir"));
              String[] links = file.list();
              for (String name : links) {
                  File potentialSymLink = new File(file, name);
                  if (FileUtils.isSymlink(potentialSymLink)) {
                      if (logger.isDebugEnabled()) {
                          logger.debug("DELETING: " + potentialSymLink);
                      }
                      potentialSymLink.delete();
                  }
              }
          }
          catch (Exception e) {
              logger.warn("Failed to remove symlinks", e);
          }
      }
docs: Will clean up symlinks that were created by a launch script