public static void purgeTables(DataSource ds) throws Exception {
  try (Connection cn=ds.getConnection()){
    Statement stmt=cn.createStatement();
    stmt.execute("DELETE FROM persons");
  }
 }

public static void purgeTables ( DataSource ds ) throws Exception { try ( Connection cn = ds . getConnection ( ) ) { Statement stmt = cn . createStatement ( ) ; stmt . execute ( "DELETE FROM persons" ) ; } }
purge the sample ' s tables
