public void deleteRows(String tableName) throws NamingException, SQLException {

    Context ctx = cache.getJNDIContext();
    DataSource da = (DataSource) ctx.lookup("java:/SimpleDataSource"); // doesn't req txn

    Connection conn = da.getConnection();
    Statement stmt = conn.createStatement();
    String sql = "select * from " + tableName;
    ResultSet rs = stmt.executeQuery(sql);
    if (rs.next()) {

      sql = "delete from  " + tableName;
      stmt.executeUpdate(sql);
    }

    rs.close();

    stmt.close();
    conn.close();
  }
This method is used to delete all rows from the timestamped table created by createTable() in
CacheUtils class.
geode-junit/src/main/java/org/apache/geode/internal/jta/JTAUtils.java