code: public static void dropOSMTables(Connection connection, boolean isH2, String tablePrefix) throws SQLException {
          TableLocation requestedTable = TableLocation.parse(tablePrefix, isH2);
          String gpxTableName = requestedTable.getTable();        
          String[] gpxTables = new String[]{WAYPOINT,ROUTE,ROUTEPOINT, TRACK, TRACKPOINT, TRACKSEGMENT};
          StringBuilder sb =  new StringBuilder("drop table if exists ");     
          String gpxTableSuffix = gpxTables[0];
          String gpxTable = TableUtilities.caseIdentifier(requestedTable, gpxTableName + gpxTableSuffix, isH2);           
          sb.append(gpxTable);
          for (int i = 1; i < gpxTables.length; i++) {
              gpxTableSuffix = gpxTables[i];
              gpxTable = TableUtilities.caseIdentifier(requestedTable, gpxTableName + gpxTableSuffix, isH2);
              sb.append(",").append(gpxTable);
          }        
          try (Statement stmt = connection.createStatement()) {
              stmt.execute(sb.toString());
          }
      }
docs: Drop the existing GPX tables used to store the imported OSM GPX
  
  @param connection
  @param isH2
  @param tablePrefix
  @throws SQLException