public static void deleteSortLocationIfExists(String tempFileLocation) throws CarbonSortKeyAndGroupByException {
  File file=new File(tempFileLocation);
  if (file.exists()) {
    try {
      CarbonUtil.deleteFoldersAndFiles(file);
    }
 catch (    CarbonUtilException e) {
      LOGGER.error(e);
    }
  }
}

public static void deleteSortLocationIfExists ( String tempFileLocation ) throws CarbonSortKeyAndGroupByException { File file = new File ( tempFileLocation ) ; if ( file . exists ( ) ) { try { CarbonUtil . deleteFoldersAndFiles ( file ) ; } catch ( CarbonUtilException e ) { LOGGER . error ( e ) ; } } }
this method will be used to delete sort temp location is it is exites
